/* ========================================
   AUTH PAGES STYLES
   Login, Signup, Account Dashboard
   ======================================== */

/* Auth Container */
.auth-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2b2b2b 100%);
}

.auth-container {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 48px;
    backdrop-filter: blur(10px);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--gray-text);
    font-size: 16px;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--light-text);
}

.form-group input {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--light-text);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Auth Button */
.auth-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-footer p {
    color: var(--gray-text);
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Error/Success Messages */
.auth-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    display: none;
}

.auth-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    display: block;
}

.auth-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    display: block;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.auth-divider span {
    color: var(--gray-text);
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   ACCOUNT DASHBOARD STYLES
   ======================================== */

.account-section {
    padding: 120px 0 60px;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2b2b2b 100%);
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.account-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--light-text);
}

.logout-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--light-text);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
}

.dashboard-card h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-card h2 svg {
    color: var(--primary-orange);
}

/* License Cards */
.licenses-section {
    margin-top: 40px;
}

.licenses-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 24px;
}

.license-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.license-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.license-key {
    font-family: monospace;
    font-size: 16px;
    color: var(--primary-orange);
    background: rgba(255, 107, 53, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
}

.license-type {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.license-type.personal {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.license-type.professional {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.license-type.enterprise {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
}

.license-type.trial {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

.license-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.license-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.license-detail label {
    font-size: 12px;
    color: var(--gray-text);
    text-transform: uppercase;
}

.license-detail span {
    font-size: 14px;
    color: var(--light-text);
    font-weight: 500;
}

/* Machines List */
.machines-list {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.machines-list h4 {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 12px;
}

.machine-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-bottom: 8px;
}

.machine-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.machine-name {
    font-size: 14px;
    color: var(--light-text);
    font-weight: 500;
}

.machine-id {
    font-size: 12px;
    color: var(--gray-text);
    font-family: monospace;
}

.machine-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.machine-status.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.machine-status.inactive {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

/* Add License Form */
.add-license-form {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.add-license-form input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--light-text);
    font-size: 14px;
    font-family: monospace;
}

.add-license-form input:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.add-license-form button {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.add-license-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-text);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    color: var(--light-text);
    margin-bottom: 8px;
}

/* Loading State */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 107, 53, 0.2);
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        padding: 32px 24px;
    }

    .auth-header h1 {
        font-size: 28px;
    }

    .account-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .add-license-form {
        flex-direction: column;
    }
}
