/* Password Recovery Page Specific Styles */
/* CSP-compliant CSS without inline styles */

/* Hero Section Layout */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    padding: 3rem 0;
    min-height: 90vh;
}

/* Beautiful background override for recover page */
.hero-background {
    background: radial-gradient(circle at 25% 25%, rgba(139, 92, 246, 0.3) 0%, transparent 50%), radial-gradient(circle at 75% 75%, rgba(16, 185, 129, 0.2) 0%, transparent 50%), linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%) !important;
    backdrop-filter: blur(20px);
}

.hero-content {
    text-align: center;
}

.hero-text {
    margin-bottom: 3rem;
}

.hero-subtitle {
    text-align: center;
    margin: 0 auto 2rem;
}

.hero-badge {
    margin-bottom: 2rem;
}

.glass-card {
    max-width: 500px;
    margin: 0 auto;
}

/* Alert and Result Messages */
.alertMsgBox {
    background: var(--gold-gradient);
    color: var(--bg-primary);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--primary-gold);
    font-size: 18px;
    display: none;
}

.loginResult {
    background: var(--glass-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-primary);
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Account Locked Success Message */
.loginResult.goldButton {
    background: transparent;
    border: none;
    color: var(--text-primary) !important;
    padding: 3rem 2rem;
    border-radius: 0;
    text-align: center;
    font-size: 1.1rem !important;
    line-height: 1.8;
    box-shadow: none;
    backdrop-filter: none;
    position: relative;
    overflow: visible;
}

/* Account locked icon */
.loginResult.goldButton::before {
    content: '🔒';
    display: block;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
    filter: grayscale(20%);
}

.loginResult.goldButton h6 {
    color: #f59e0b !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    margin: 2rem 0 1.5rem 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-shadow: none !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
}

.loginResult.goldButton a {
    color: var(--text-primary) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    display: inline-block !important;
    padding: 0.875rem 2rem !important;
    border: 2px solid var(--primary-gold) !important;
    border-radius: 8px !important;
    margin-top: 2rem !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
}

.loginResult.goldButton a:hover {
    background: var(--primary-gold) !important;
    color: var(--bg-primary) !important;
    text-shadow: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(212, 161, 77, 0.4) !important;
}

/* Security notice section */
.loginResult.goldButton .security-notice {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(220, 38, 38, 0.04));
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    color: #fca5a5;
    font-size: 0.95rem;
    line-height: 1.7;
    border-left: 4px solid #ef4444;
}

/* Instructions text */
.loginResult.goldButton .instructions {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Hide hero subtitle when account is locked */
.hero-subtitle.account-locked {
    display: none !important;
}

/* Green Success Message for Reset Instructions Sent */
.loginResult.greenButton {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(22, 163, 74, 0.15));
    border: 2px solid rgba(34, 197, 94, 0.6);
    color: #bbf7d0 !important;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-size: 1.2rem !important;
    line-height: 1.7;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    font-weight: 600;
}

.loginResult.greenButton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Hide hero subtitle when reset instructions sent */
.hero-subtitle.reset-sent {
    display: none !important;
}

/* Enhanced styling for account locked state */
.hero-badge {
    transition: all 0.3s ease;
}

.hero-title {
    transition: all 0.3s ease;
}

/* Form Styling */
.loginForm {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--glass-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: 'League Spartan', sans-serif;
    font-size: 1.1rem;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(212, 161, 77, 0.3);
}

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

/* Captcha Styling */
.captcha-section {
    margin-bottom: 1.5rem;
}

.captchaRow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.showCImg {
    background: var(--gold-gradient);
    color: var(--bg-primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition-normal);
    border: 2px solid var(--primary-gold);
    font-size: 18px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.showCImg:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.captcha-text-center {
    text-align: center;
}

.captcha-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.captcha-input {
    font-size: 1.2rem;
    text-align: center;
    font-weight: bold;
}

/* Button Styling */
#resetBtn {
    width: 100%;
    justify-content: center;
    text-align: center;
}

/* Login Link Section */
.login-link-section {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.login-link-text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Template Result */
.templateResult {
    display: none;
}

.template-content {
    text-align: center;
    color: var(--text-primary);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top: 3px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Required Field Styling */
.required-input {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2) !important;
}

/* Legacy Compatibility */
.angel-logo-div {
    text-align: center;
}

.recover {
    text-align: center;
}

/* Loading animation for compatibility */
.lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-ellipsis div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) {
    left: 8px;
    animation: lds-ellipsis1 0.6s infinite;
}

.lds-ellipsis div:nth-child(2) {
    left: 8px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(3) {
    left: 32px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(4) {
    left: 56px;
    animation: lds-ellipsis3 0.6s infinite;
}

@keyframes lds-ellipsis1 {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes lds-ellipsis3 {
    0% { transform: scale(1); }
    100% { transform: scale(0); }
}

@keyframes lds-ellipsis2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(24px, 0); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .glass-card {
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    .form-input {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
    
    .hero-badge {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .glass-card {
        margin: 0 0.5rem;
        padding: 1.25rem;
    }
    
    .alertMsgBox {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero-badge {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
}
