html,
body {
    height: 100%;
    margin: 0;
    overflow: hidden !important;
    background: #fafafa !important;
    animation: none !important;
    font-family: "Nunito", sans-serif;
}

.login-page {
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
    overflow: hidden;
}

.login-box {
    width: 100%;
    max-width: 420px;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* Sirf yeh hissa scroll hoga, scrollbar hidden */
.login-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 6px 10px;
    margin: 0 -6px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.login-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.forgot-title {
    font-size: 26px;
    font-weight: 800;
    color: #0b1a33;
    margin: 0 0 10px;
}

.forgot-text {
    font-size: 14px;
    font-weight: 600;
    color: #6b7a90;
    line-height: 1.5;
    margin: 0 0 24px;
}

.forgot-status {
    background: #e8f7ee;
    color: #15803d;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
    text-align: left;
}

.login-field {
    margin-bottom: 18px;
    text-align: left;
}

.login-input {
    width: 100%;
    height: 50px;
    border: 1.5px solid transparent;
    border-radius: 10px;
    background: #eef2f7;
    padding: 0 18px;
    font-size: 15px;
    font-family: inherit;
    color: #0b1a33;
    outline: none;
    box-sizing: border-box;
    transition:
        border-color 0.2s,
        background 0.2s;
}

.login-input::placeholder {
    color: #6b7a90;
}

.login-input:focus {
    border-color: #2563eb;
    background: #fff;
}

.login-error {
    display: block;
    color: #dc2626;
    font-size: 12px;
    font-weight: 700;
    margin-top: 6px;
    text-align: left;
}

.login-btn {
    width: 100%;
    min-height: 48px;
    height: auto;
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.3;
    text-align: center;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
    transition:
        background 0.2s,
        transform 0.2s;
}

.login-btn:hover {
    background: #1e3a8a;
    transform: translateY(-1px);
}

.login-btn.is-loading {
    opacity: 0.75;
    pointer-events: none;
}

.login-btn .spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.login-or {
    margin: 20px 0;
    font-size: 14px;
    font-weight: 800;
    color: #0b1a33;
}

.login-btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    height: auto;
    padding: 10px 14px;
    border: 1px solid #1e3a8a;
    border-radius: 10px;
    background: #f1f1f1;
    color: #0b1a33;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.2s;
}

.login-btn-outline:hover {
    background: #e4ebf7;
}

.page-loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.page-loader.show {
    display: flex;
}

.loader-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #dbe5f5;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@media (max-width: 600px) {
    .login-page {
        padding: 16px 34px; 
    }

    .forgot-title {
        font-size: 22px;
    }


    .login-input {
        font-size: 16px;
    }

    .login-btn-outline {
        font-size: 13px;
        letter-spacing: 0.3px;
    }
}

@media (max-width: 360px) {
    .login-page {
        padding: 12px 28px; 
    }

    .login-btn,
    .login-btn-outline {
        font-size: 12.5px;
        letter-spacing: 0.2px;
        padding: 10px 10px;
    }
}
