* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Background styling for the white page */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 1;
}

/* Forgot Password Popup Overlay */
.forgot-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px) saturate(180%);
    -webkit-backdrop-filter: blur(8px) saturate(180%);
}

.forgot-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.forgot-popup {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(1);
    opacity: 1;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.forgot-popup-overlay.active .forgot-popup {
    transform: scale(1);
    opacity: 1;
}

.forgot-popup-header {
    padding: 15px 20px;
    background: #fa5305;
    color: white;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.forgot-popup-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.forgot-popup-header h2 i {
    font-size: 1.2rem;
}

.forgot-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.forgot-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.forgot-popup-content {
    padding: 30px;
}

/* Custom Scrollbar Styling */
.forgot-popup::-webkit-scrollbar {
    width: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.forgot-popup::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #fa5305 40%, #ff6b35 100%);
    border-radius: 10px;
    min-height: 40px;
}

.forgot-popup::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff6b35 0%, #fa5305 100%);
}

.forgot-popup {
    scrollbar-width: thin;
    scrollbar-color: #fa5305 rgba(255, 255, 255, 0.08);
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 25px;
}

.logo {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 12px;
}

.login-title {
    color: #fa5305;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.login-subtitle {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    display: block;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.input-group {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 14px 45px 14px 45px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    color: #333;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: rgba(44, 42, 42, 0.6);
}

.form-control:focus {
    outline: none;
    border-color: #fa5305;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(250, 83, 5, 0.2);
    transform: translateY(-2px);
}

.form-control:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #ff4444;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #fa5305;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 2;
}

.form-control:focus+.input-icon {
    transform: translateY(-50%) scale(1.1);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #fa5305, #ff6b35);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(250, 83, 5, 0.3);
}

.submit-btn:enabled:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 91, 14, 0.4);
}

.submit-btn:enabled::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:enabled:hover::before {
    left: 100%;
}

.submit-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.back-to-login {
    text-align: center;
    margin-top: 20px;
}

.back-link {
    color: #fa5305;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.back-link:hover {
    color: #ff6b35;
    text-decoration: underline;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(179, 174, 174, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success Message */
.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.success-message i {
    color: #28a745;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .forgot-popup {
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .forgot-popup {
        padding: 25px 20px;
        margin: 15px;
    }

    .forgot-popup-content {
        padding: 25px;
    }

    .logo {
        width: 45px;
        height: 45px;
    }

    .login-title {
        font-size: 1.3rem;
    }

    .form-control {
        padding: 12px 40px 12px 40px;
    }
}