/* Auth Page Styles */

.auth-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    background: var(--color-bg);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 48px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 24px;
}

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

.auth-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-bg);
}

.auth-logo svg {
    width: 32px;
    height: 32px;
}

.auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Form Styles */
.auth-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

.form-group input::placeholder {
    color: var(--color-text-dark);
}

.form-error {
    padding: 12px 16px;
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: 10px;
    color: var(--color-accent);
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: none;
}

.form-error.show {
    display: block;
}

.btn-full {
    width: 100%;
}

/* Switch between login/register */
.auth-switch {
    text-align: center;
    margin-bottom: 24px;
}

.auth-switch span {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.switch-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
    transition: all var(--transition-fast);
}

.switch-btn:hover {
    text-decoration: underline;
}

/* Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-border);
}

.auth-divider span {
    position: relative;
    padding: 0 16px;
    background: var(--color-bg-card);
    color: var(--color-text-dark);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Success message */
.auth-success {
    text-align: center;
    padding: 24px;
}

.auth-success svg {
    width: 56px;
    height: 56px;
    color: var(--color-success);
    margin-bottom: 16px;
}

.auth-success h2 {
    margin-bottom: 8px;
}

.auth-success p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

/* Loading state */
.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn.loading span {
    visibility: hidden;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .auth-main {
        padding: 100px 16px 40px;
    }
    
    .auth-card {
        padding: 32px 20px;
        border-radius: 20px;
    }
    
    .auth-logo {
        width: 56px;
        height: 56px;
    }
    
    .auth-logo svg {
        width: 28px;
        height: 28px;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .auth-header p {
        font-size: 0.9rem;
    }
    
    .form-group input {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
    
    .btn-full {
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 28px 16px;
    }
    
    .auth-header h1 {
        font-size: 1.35rem;
    }
}
