/* Login Page Specific Styles */

/* Additional styles for inline style removal */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    padding: 3rem 0;
    min-height: 100vh;
}

/* Beautiful background override for login 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;
}

.alertMsgBox {
    display: none;
}

.loginResult {
    display: none;
}

.templateResult {
    display: none;
}

.twoFactorRow {
    display: none;
}

.captcha-text-center {
    text-align: center;
    margin-top: 1rem;
}

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

#loginBtn {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.forgot-password-section {
    text-align: center;
}

.signup-link-section {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

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

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

.loading-spinner {
    margin: 2rem auto;
}

/* Hero Section Styling */
.login-hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
}

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

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

.login-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass-light);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 1rem 2rem;
    backdrop-filter: blur(20px);
    color: var(--text-accent);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.login-form-container {
    max-width: 500px;
    margin: 0 auto;
}

/* 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);
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Captcha Styling */
.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-instructions {
    text-align: center;
    margin-top: 1rem;
}

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

/* Alert and Result Messages */
.alertMsgBox {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.15));
    border: 2px solid rgba(239, 68, 68, 0.6);
    color: #fecaca !important;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    font-size: 1.1rem;
    line-height: 1.6;
    display: none;
    position: relative;
    overflow: hidden;
}

.alertMsgBox::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;
}

.loginResult {
    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;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    font-size: 1.1rem;
    line-height: 1.6;
    display: none;
    position: relative;
    overflow: hidden;
}

.loginResult::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;
}

/* Success state for login result */
.loginResult.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(22, 163, 74, 0.15));
    border-color: rgba(34, 197, 94, 0.6);
    color: #bbf7d0 !important;
}

/* Error state for login result */
.loginResult.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.15));
    border-color: rgba(239, 68, 68, 0.6);
    color: #fecaca !important;
}

/* Processing/Loading state for login result */
.loginResult.processing {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(109, 40, 217, 0.15));
    border-color: rgba(139, 92, 246, 0.6);
    color: #e9d5ff !important;
}

/* Success state for alert message */
.alertMsgBox.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(22, 163, 74, 0.15));
    border-color: rgba(34, 197, 94, 0.6);
    color: #bbf7d0 !important;
}

/* Error state for alert message */
.alertMsgBox.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.15));
    border-color: rgba(239, 68, 68, 0.6);
    color: #fecaca !important;
}

/* Processing/Loading state for alert message */
.alertMsgBox.processing {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(109, 40, 217, 0.15));
    border-color: rgba(139, 92, 246, 0.6);
    color: #e9d5ff !important;
}

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

/* Links */
.forgot-password-link {
    color: var(--text-accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.forgot-password-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.forgot-password-container {
    text-align: center;
}

/* Two Factor Authentication */
.twoFactorRow {
    display: none;
}

.agreeRow,
.commissionsRow {
    display: none;
    text-align: center;
    font-size: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--glass-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
}

.commissionsRow {
    font-size: 0.85rem;
}

/* Specific Input Styling */
#cimg {
    font-size: 1.2rem;
    text-align: center;
    font-weight: bold;
}

#twoFactor {
    font-size: 1.2rem;
    text-align: center;
    font-weight: bold;
}

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

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

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

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

.template-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.template-content p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

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

.template-result-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.template-result-content p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.template-loading-spinner {
    margin: 2rem auto;
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top: 3px solid rgba(139, 92, 246, 0.8);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.recover {
    text-align: center;
}

/* Loading animation from old styles 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) {
    .login-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;
    }
    
    .login-hero-badge {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .login-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;
    }
    
    .login-hero-badge {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
}
