/* Authentication Page Styles */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 40px;
    background: linear-gradient(135deg, var(--background) 0%, rgba(106, 77, 255, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 10;
}

.auth-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--dark-text);
}

.auth-header p {
    color: var(--subtext);
    font-size: 0.875rem;
}

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

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

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

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(106, 77, 255, 0.2);
    border-radius: 12px;
    font-size: 0.875rem;
    background: var(--white);
    color: var(--dark-text);
    transition: var(--transition);
}

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

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

.forgot-link {
    display: block;
    text-align: right;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--secondary);
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
    overflow: hidden;
    transition: var(--transition);
}

.password-strength::before {
    content: '';
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
    transition: var(--transition);
}

.password-strength.weak::before { width: 33%; }
.password-strength.medium::before { width: 66%; }
.password-strength.strong::before { width: 100%; }

/* Checkbox Styles */
.form-group.checkbox {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.4;
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(106, 77, 255, 0.3);
    border-radius: 4px;
    background: var(--white);
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input:checked + .checkmark {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: var(--primary);
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.terms-link {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.terms-link:hover {
    color: var(--secondary);
}

/* Auth Buttons */
.auth-btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.auth-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: var(--shadow-light);
}

.auth-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(106, 77, 255, 0.3);
}

.auth-btn.google {
    background: var(--white);
    color: var(--dark-text);
    border: 1px solid rgba(106, 77, 255, 0.2);
}

.auth-btn.google:hover {
    background: var(--background);
    transform: translateY(-1px);
}

/* Auth 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: rgba(106, 77, 255, 0.2);
}

.auth-divider span {
    background: var(--glass);
    padding: 0 16px;
    font-size: 0.75rem;
    color: var(--subtext);
    position: relative;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 24px;
}

.auth-footer p {
    font-size: 0.875rem;
    color: var(--subtext);
    margin-bottom: 16px;
}

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

.auth-footer a:hover {
    color: var(--secondary);
}

.guest-link {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(106, 77, 255, 0.1);
    color: var(--primary);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}

.guest-link:hover {
    background: rgba(106, 77, 255, 0.2);
    transform: translateY(-1px);
}

/* Background Elements */
.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float-auth 8s ease-in-out infinite;
}

.orb-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    bottom: 20%;
    left: 10%;
    animation-delay: 4s;
}

@keyframes float-auth {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.1); }
    66% { transform: translate(-15px, 15px) scale(0.9); }
}

.auth-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="1" fill="%236A4DFF" opacity="0.4"><animate attributeName="cy" values="25;75;25" dur="6s" repeatCount="indefinite"/></circle><circle cx="75" cy="50" r="1.5" fill="%23A78BFA" opacity="0.3"><animate attributeName="cy" values="50;20;50" dur="4s" repeatCount="indefinite"/></circle><circle cx="50" cy="75" r="0.8" fill="%23C084FC" opacity="0.5"><animate attributeName="cy" values="75;25;75" dur="5s" repeatCount="indefinite"/></circle></svg>') repeat;
    animation: particles-float 15s linear infinite;
}

@keyframes particles-float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

/* Form Validation States */
.form-group input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input.success {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.error-message {
    margin-top: 6px;
    font-size: 0.75rem;
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 4px;
}

.success-message {
    margin-top: 6px;
    font-size: 0.75rem;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Loading State */
.auth-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.auth-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

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

/* Responsive Design */
@media (max-width: 480px) {
    .auth-section {
        padding: 100px 16px 40px;
    }
    
    .auth-card {
        padding: 32px 24px;
    }
    
    .auth-header h1 {
        font-size: 1.75rem;
    }
    
    .form-group input {
        padding: 14px 16px;
    }
    
    .auth-btn {
        padding: 16px 20px;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .auth-card {
        background: rgba(26, 26, 26, 0.8);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .form-group input {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.2);
        color: white;
    }
    
    .auth-btn.google {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border-color: rgba(255, 255, 255, 0.2);
    }
}