/* Import Cinzel font for authentication pages */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&display=swap');

/* Authentication Pages Styles */
.login-container, .signup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 2rem;
    box-sizing: border-box;
}

.login-paper, .signup-paper {
    background: rgba(15, 23, 42, 0.95);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.login-title, .signup-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #ffd700;
    text-align: center;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.login-subtitle, .signup-subtitle {
    font-size: 0.95rem;
    color: #cbd5e1;
    text-align: center;
    margin: 0 0 2rem 0;
}

.login-error, .signup-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    color: #fca5a5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-error .material-icons, 
.signup-error .material-icons {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.login-form-group, .signup-form-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    font-size: 0.9rem;
    color: #e2e8f0;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    color: #f1f5f9;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-input::placeholder {
    color: #64748b;
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.password-toggle:hover {
    opacity: 1;
}

.password-toggle .material-icons {
    font-size: 1.3rem;
}

.field-error {
    font-size: 0.85rem;
    color: #fca5a5;
}

.login-remember-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cbd5e1;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.forgot-password-link {
    color: #ffd700;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password-link:hover {
    color: #ffed4e;
}

.login-button, .signup-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1e293b;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.login-button:hover:not(:disabled), .signup-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.login-button:disabled, .signup-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(30, 41, 59, 0.3);
    border-top-color: #1e293b;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.login-divider, .signup-divider {
    height: 1px;
    background: rgba(148, 163, 184, 0.2);
    margin: 2rem 0;
}

.login-footer {
    text-align: center;
}

.login-footer-text {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
}

.login-footer-link {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.login-footer-link:hover {
    color: #ffed4e;
}

/* Password Requirements */
.password-requirements {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.requirement-item.valid {
    color: #4ade80;
}

.requirement-item .material-icons {
    font-size: 1rem;
}

/* Terms Checkbox */
.terms-checkbox-container {
    margin: 1.5rem 0;
}

.terms-checkbox-container label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

/* ============================================
   AUTH HOME LINK
   ============================================ */

.auth-home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.auth-home-link:hover {
    color: #ffd700;
}

.auth-home-link .material-icons {
    font-size: 1.1rem;
}

/* ============================================
   SIGNUP UPSELL SECTION
   ============================================ */

.signup-container {
    flex-direction: column;
    gap: 2rem;
}

.signup-upsell {
    max-width: 450px;
    width: 100%;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.12);
    border-radius: 16px;
}

.upsell-heading {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: #ffd700;
    text-align: center;
    margin: 0 0 1.5rem 0;
}

.upsell-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.upsell-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.upsell-icon {
    color: #ffd700;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.upsell-feature strong {
    color: #e2e8f0;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.2rem;
}

.upsell-feature p {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.upsell-cta {
    text-align: center;
    color: #4ade80;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 1.5rem 0 0 0;
}

@media (min-width: 900px) {
    .signup-container {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        gap: 3rem;
    }

    .signup-upsell {
        position: sticky;
        top: 2rem;
        max-width: 380px;
    }
}

.terms-checkbox-container input[type="checkbox"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* Alerts */
.alert {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert .material-icons {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #86efac;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}

/* Responsive */
@media (max-width: 640px) {
    .login-paper, .signup-paper {
        padding: 1.5rem;
    }

    .login-title, .signup-title {
        font-size: 1.75rem;
    }
}
