:root {
    --primary: #159447;
    --primary-light: #35bd5c;
    --primary-dark: #087a35;
    --text-dark: #09252e;
    --text-muted: #687982;
    --border: #dfe7e2;
    --soft-green: #effaf2;
    --page-background: #f8faf9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    overflow: hidden;
    background: var(--page-background);
    color: var(--text-dark);
}

body {
    overflow-x: hidden;
}

button,
input {
    font-family: inherit;
}

.user-login-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.user-main-area {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
}

/* =========================================
           LEFT IMAGE PANEL — 60%
        ========================================= */

.user-visual-panel {
    position: relative;
    width: 60%;
    height: 100%;
    overflow: hidden;
    background: url("../img/login.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.decorative-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(46, 175, 76, 0.28);
}

.leaf-decoration {
    position: absolute;
    z-index: 2;
    color: rgba(26, 155, 65, 0.20);
    font-size: 150px;
    line-height: 1;
}

.leaf-decoration.top {
    left: -25px;
    top: -40px;
    transform: rotate(-28deg);
}

.leaf-decoration.bottom {
    left: -25px;
    bottom: -48px;
    transform: rotate(28deg);
}

/* =========================================
           RIGHT LOGIN PANEL — 40%
        ========================================= */

.user-form-panel {
    position: relative;
    width: 40%;
    height: 100vh;
    background: #eef3ef;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    overflow: hidden;
}

.secure-access-label {
    position: absolute;
    top: 22px;
    right: 57px;
    left: auto;
    transform: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    z-index: 10;
    white-space: nowrap;
}

.secure-access-label i {
    font-size: 18px;
}

.register-prompt {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eef2ef;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.register-prompt a {
    margin-left: 6px;
    color: var(--primary);
    font-weight: 750;
    text-decoration: none;
}

.register-prompt a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.login-card {
    width: min(100%, 500px);
    max-height: calc(100vh - 80px);
    padding: 28px 50px 22px;
    border-radius: 15px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(225, 232, 227, .90);
    box-shadow:
        0 26px 65px rgba(30, 63, 42, .09),
        0 5px 20px rgba(32, 69, 44, .04);

    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Only this area scrolls — icon, heading, divider, social, and footer stay fixed */
.login-form-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    margin-right: -6px;
}

.login-form-scroll::-webkit-scrollbar {
    width: 6px;
}

.login-form-scroll::-webkit-scrollbar-track {
    background: #eef4ef;
    border-radius: 10px;
}

.login-form-scroll::-webkit-scrollbar-thumb {
    background: #159447;
    border-radius: 10px;
}

.login-form-scroll::-webkit-scrollbar-thumb:hover {
    background: #0d7d3a;
}

.login-brand-icon {
    width: 86px;
    height: 86px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background:
        radial-gradient(circle,
            #f4fcf5 5%,
            #e8f7eb 100%);
    box-shadow: 0 13px 28px rgba(20, 132, 59, 0.09);
    font-size: 47px;
}

.login-heading {
    text-align: center;
    margin-bottom: 25px;
}

.login-heading h2 {
    margin-bottom: 6px;
    color: var(--text-dark);
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -0.7px;
}

.login-heading h2 span {
    color: var(--primary);
}

.login-heading p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.form-group {
    margin-bottom: 17px;
}

.form-label {
    margin-bottom: 8px;
    color: #2b3b42;
    font-size: 12px;
    font-weight: 750;
}

.form-label.required::after {
    content: " *";
    color: #dc3545;
    font-weight: 700;
}

.input-wrap {
    position: relative;
}

.input-wrap .input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #76868c;
    font-size: 18px;
    z-index: 2;
    pointer-events: none;
}

.login-input {
    width: 100%;
    height: 53px;
    padding: 0 50px 0 48px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: #23363d;
    font-size: 13px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.login-input::placeholder {
    color: #98a4a8;
}

.login-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(21, 148, 71, 0.09);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #79898f;
    background: transparent;
    cursor: pointer;
    font-size: 17px;
}

.password-toggle:hover {
    color: var(--primary);
    background: var(--soft-green);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 2px 0 21px;
}

.remember-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #45585f;
    font-size: 12px;
    cursor: pointer;
}

.remember-wrap input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.forgot-link {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

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

.sign-in-button {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    background: linear-gradient(90deg,
            #2cc052 0%,
            #0d9840 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 750;
    box-shadow: 0 12px 24px rgba(21, 148, 71, 0.20);
    cursor: pointer;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.sign-in-button i {
    font-size: 19px;
}

.sign-in-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 31px rgba(21, 148, 71, 0.28);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 23px 0 18px;
    color: #849096;
    font-size: 12px;
    white-space: nowrap;
}

.login-divider::before,
.login-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e3e9e5;
}

.social-login-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.social-button {
    width: 52px;
    height: 52px;
    border: 1px solid #e1e9e3;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #4a5c62;
    font-size: 23px;
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(29, 61, 39, 0.06);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.social-button:hover {
    transform: translateY(-3px);
    border-color: rgba(21, 148, 71, 0.35);
    box-shadow: 0 12px 24px rgba(29, 61, 39, 0.10);
}

.social-button img {
    width: 30px;
    height: 30px;
}

.social-button.secure {
    color: var(--primary);
}

.login-card-footer {
    margin-top: 20px;
    text-align: center;
}

.login-card-footer .footer-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-bottom: 7px;
    color: #65757b;
    font-size: 12px;
}

.login-card-footer .copyright {
    margin: 0;
    color: #829096;
    font-size: 12px;
}

.login-card-footer .copyright strong {
    color: var(--primary);
}

/* =========================================
   BOTTOM SECURITY STRIP
========================================= */

.security-strip {
    width: 100%;
    height: 94px;
    flex: 0 0 94px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(252, 255, 253, 0.98);
    border-top: 1px solid #e5eee8;
    box-shadow: 0 -7px 24px rgba(20, 78, 40, 0.03);
    position: relative;
    z-index: 30;
}

.security-feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 25px;
    border-right: 1px solid #eef2ef;
}

.security-feature:last-child {
    border-right: 0;
}

.security-feature-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #f4fbf5;
    border: 1px solid #e2f1e5;
    font-size: 25px;
    box-shadow: 0 6px 15px rgba(20, 100, 45, 0.07);
}

.security-feature-copy strong {
    display: block;
    color: #263b42;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.security-feature-copy span {
    display: block;
    max-width: 180px;
    color: #6b7a80;
    font-size: 11px;
    line-height: 1.5;
}


.login-card {
    position: relative;
    /* isse absolute button card ke andar hi rahega */
}

.back-home-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #16a34a;
    /* green border, screenshot ke hisab se change kar sakte ho */
    color: #16a34a;
    background: transparent;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.2s ease;
    z-index: 10;
}

.back-home-btn:hover {
    background: #16a34a;
    color: #fff;
}


/* =========================================
           RESPONSIVE
        ========================================= */

@media (max-width: 1300px) {
    .user-main-area {
        height: calc(100vh - 84px);
        min-height: 620px;
    }

    .visual-copy {
        margin-top: 47px;
    }

    .visual-copy h1 {
        font-size: 42px;
        margin-bottom: 18px;
    }

    .visual-copy>p {
        font-size: 14px;
        line-height: 1.65;
        margin-bottom: 20px;
    }

    .feature-list {
        gap: 10px;
    }

    .feature-icon {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
        font-size: 20px;
    }

    .login-card {
        max-width: 430px;
        padding: 28px 30px 20px;
    }

    .login-brand-icon {
        width: 74px;
        height: 74px;
        font-size: 40px;
    }

    .security-strip {
        height: 84px;
    }

    .security-feature {
        padding: 12px 18px;
    }

    .security-feature-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        font-size: 22px;
    }
}

@media (max-width: 1050px) {
    .user-visual-panel {
        width: 55%;
    }

    .user-form-panel {
        width: 45%;
        padding: 25px;
    }

    .visual-copy h1 {
        font-size: 37px;
    }

    .security-feature {
        gap: 10px;
        padding: 10px 12px;
    }
}

@media (max-width: 991.98px) {
    body {
        overflow-y: auto;
    }

    .user-main-area {
        height: auto;
        min-height: 100vh;
    }

    .user-visual-panel {
        display: none;
    }

    .user-form-panel {
        width: 100%;
        min-height: 100vh;
        padding: 95px 22px 35px;
    }

    .secure-access-label {
        top: 28px;
    }

    .login-card {
        width: min(100%, 500px);
        max-width: 500px;
        margin-top: 0;
    }

    .security-strip {
        display: none;
    }

    .login-card {
        max-height: none;
        overflow: visible;

    }

    .login-form-scroll {
        overflow-y: visible;
        padding-right: 0;
        margin-right: 0;
    }
}

@media (max-width: 575.98px) {
    .user-form-panel {
        align-items: flex-start;
        padding: 77px 15px 24px;
    }

    .secure-access-label {
        top: 22px;
        font-size: 12px;
    }

    .login-card {
        padding: 26px 20px 22px;
        border-radius: 20px;
    }

    .login-brand-icon {
        width: 72px;
        height: 72px;
        font-size: 39px;
    }

    .login-heading h2 {
        font-size: 25px;
    }

    .login-input {
        height: 51px;
    }

    .login-options {
        align-items: flex-start;
    }

    .social-login-list {
        gap: 18px;
    }

    .social-button {
        width: 49px;
        height: 49px;
    }
}

@media (max-height: 760px) and (min-width: 992px) {
    .user-main-area {
        height: calc(100vh - 76px);
        min-height: 580px;
    }

    .visual-copy {
        margin-top: 34px;
    }

    .visual-copy h1 {
        font-size: 37px;
        margin-bottom: 15px;
    }

    .visual-copy>p {
        margin-bottom: 15px;
    }

    .feature-list {
        gap: 8px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .secure-note {
        padding: 10px 17px;
    }

    .login-card {
        padding-top: 22px;
        padding-bottom: 17px;
    }

    .login-brand-icon {
        width: 67px;
        height: 67px;
        margin-bottom: 8px;
        font-size: 36px;
    }

    .login-heading {
        margin-bottom: 17px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .login-input {
        height: 47px;
    }

    .login-options {
        margin-bottom: 15px;
    }

    .sign-in-button {
        min-height: 48px;
    }

    .login-divider {
        margin: 17px 0 13px;
    }

    .social-button {
        width: 45px;
        height: 45px;
    }

    .login-card-footer {
        margin-top: 13px;
    }

    .security-strip {
        height: 76px;
    }
}

/* =========================================
      OTP PAGE
========================================= */

.otp-box {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.otp-input {
    width: 100%;
    height: 58px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 12px;
    color: var(--text-dark);
    transition: .25s;
}

.otp-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(21, 148, 71, .10);
}

.otp-note {
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.7;
}

.otp-note strong {
    color: var(--primary);
}

.resend-area {
    margin-top: 20px;
    text-align: center;
}

.resend-btn {
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.resend-btn:hover {
    color: var(--primary-dark);
}

.back-login {
    margin-top: 18px;
    text-align: center;
}

.back-login a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
}

.back-login a:hover {
    color: var(--primary);
}

/* Global Cloudflare Turnstile Style */

.turnstile-wrap {
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.cf-turnstile {
    margin: -1px;
}