/* =========================================================
   Authentication Pages
   Login / Register
   ========================================================= */

.auth-page {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 60px;
}

.auth-card {
    width: 100%;
}

/* Login */
.auth-card.auth-card-login {
    max-width: 440px;
}

/* Register */
.auth-card.auth-card-register {
    max-width: 520px;
}

.auth-card-header {
    margin-bottom: 24px;
    text-align: center;
}

.auth-card-header h1 {
    margin: 0 0 8px;
    color: var(--app-text);
    font-size: 28px;
    line-height: 1.25;
}

.auth-card-header p {
    margin: 0;
    color: var(--app-muted);
    font-size: 14px;
    line-height: 1.5;
}

.auth-form {
    margin-top: 4px;
}

.auth-submit {
    width: 100%;
    margin-top: 4px;
}

.auth-footer {
    margin: 22px 0 0;
    text-align: center;
    color: var(--app-muted);
    font-size: 14px;
    line-height: 1.5;
}

.auth-footer a {
    color: var(--app-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-error-list {
    margin: 0;
    padding-left: 20px;
}

.auth-error-list li + li {
    margin-top: 5px;
}

@media (max-width: 480px) {

    .auth-page {
        min-height: calc(100vh - 68px);
        padding: 28px 14px 40px;
    }

    .auth-card-header h1 {
        font-size: 24px;
    }

}
/* Google OAuth sign-in and account completion */
.auth-google-button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin-top: 1rem;
    text-decoration: none;
    text-align: center;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: var(--text-muted, #6b7280);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color, #d1d5db);
}

.auth-google-email {
    overflow-wrap: anywhere;
    margin: 0;
}

.auth-card-google-complete {
    max-width: 520px;
}
/* Google account-completion cancellation */
.auth-google-cancel-wrap {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.auth-google-cancel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    text-decoration: none;
    background: transparent;
    border: 1px solid var(--app-border, #cbd5e1);
    color: inherit;
    cursor: pointer;
}

.auth-google-cancel-button:hover {
    opacity: 0.85;
}

/* PROPERTYHUB AUTH LAYOUT REFINEMENT */
.auth-card {
    box-sizing: border-box;
    padding: 28px 32px;
}

.auth-card-header {
    margin-bottom: 20px;
}

.auth-card-header h1 {
    text-transform: none;
}

.auth-card-header p {
    margin-top: 0;
}

.auth-google-button {
    margin: 20px 0 0;
    text-decoration: none;
}

.auth-google-button:hover,
.auth-google-button:focus {
    text-decoration: none;
}

.auth-divider {
    margin: 22px 0 24px;
    color: var(--app-muted);
}

.auth-divider::before,
.auth-divider::after {
    background: var(--app-border);
}

.auth-form {
    margin-top: 0;
}

.auth-form .app-form-group {
    margin-bottom: 16px;
}

.auth-form .app-input,
.auth-form .app-select,
.auth-form .app-textarea {
    box-sizing: border-box;
    max-width: 100%;
}

.auth-form label {
    line-height: 1.4;
}

.auth-footer a {
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: none;
}

@media (max-width: 520px) {
    .auth-page {
        padding: 24px 14px 36px;
    }

    .auth-card {
        padding: 24px 20px;
    }
}


/* Shared OTP verification controls */
.otp-resend-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.otp-resend-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.otp-resend-button .otp-resend-timer {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.otp-verify-button,
.otp-resend-button,
.otp-login-button {
    box-sizing: border-box;
}

.otp-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 16px;
    padding: 10px 16px;
    border: 1px solid var(--app-border, #cbd5e1);
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.otp-login-button:hover {
    text-decoration: none;
    opacity: 0.85;
}

.otp-code-input {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.35rem;
}

.otp-resend-help {
    margin: 18px 0 10px;
    text-align: center;
    color: var(--app-muted);
    font-size: 14px;
    line-height: 1.5;
}


/* Registration OTP spacing adjustment */
.otp-resend-help {
    margin: 24px 0 8px;
}

.otp-resend-button {
    margin-top: 0;
}

.otp-resend-button + p,
.auth-card-register > p {
    line-height: 1.5;
}


/* Google OTP button spacing */
.google-otp-login-action {
    margin-top: 16px;
}

/* APNAKHASRA LOGIN SPLIT SCREEN V1 */
.auth-page:has(.auth-card-login) {
    min-height: calc(100vh - 76px);
    box-sizing: border-box;
    padding: 32px 24px 44px;
    background: #f3f6f3;
}

.auth-page:has(.auth-card-login) .auth-card-login {
    width: 100%;
    max-width: 1160px;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
    align-items: stretch;
    gap: 36px;
    padding: 24px;
    border: 1px solid #e5ebe6;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(31, 58, 43, 0.07);
}

.auth-login-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 18px 28px 22px;
}

.auth-page:has(.auth-card-login) .auth-card-header {
    margin-bottom: 20px;
}

.auth-page:has(.auth-card-login) .auth-card-header h1 {
    font-family: "Manrope", "DM Sans", sans-serif;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -1px;
}

.auth-page:has(.auth-card-login) .auth-google-button {
    min-height: 48px;
    margin: 4px 0 0;
    border: 1px solid #d8e0da;
    border-radius: 10px;
    background: #fff;
    color: #24382d;
    font-weight: 600;
}

.auth-page:has(.auth-card-login) .auth-google-button:hover {
    background: #f7faf7;
    border-color: #aebfb2;
}

.auth-page:has(.auth-card-login) .auth-divider {
    margin: 22px 0;
}

.auth-page:has(.auth-card-login) .auth-form .app-form-group {
    margin-bottom: 17px;
}

.auth-page:has(.auth-card-login) .auth-form .app-input {
    min-height: 48px;
    border-radius: 10px;
}

.auth-page:has(.auth-card-login) .auth-submit {
    min-height: 48px;
    margin-top: 8px;
    border-radius: 10px;
    background: linear-gradient(120deg, #315f48, #27835f);
    box-shadow: 0 6px 16px rgba(36, 76, 58, 0.16);
}

.auth-page:has(.auth-card-login) .auth-submit:hover {
    filter: brightness(1.04);
}

.auth-page:has(.auth-card-login) .auth-footer {
    margin-top: 20px;
}

.auth-login-visual {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 540px;
    overflow: hidden;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 34px;
    box-sizing: border-box;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(17, 39, 48, 0.48), rgba(17, 39, 48, 0.04) 65%),
        url("../images/login-property.jpg") center center / cover no-repeat,
        #dbe5dc;
}

.auth-login-visual-copy {
    position: relative;
    z-index: 1;
    max-width: 390px;
    color: #fff;
    text-align: right;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

.auth-login-visual-copy h2 {
    margin: 0 0 10px;
    font-family: "Manrope", "DM Sans", sans-serif;
    font-size: clamp(25px, 2.5vw, 34px);
    font-weight: 800;
    line-height: 1.2;
}

.auth-login-visual-copy p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
}

@media (max-width: 900px) {
    .auth-page:has(.auth-card-login) .auth-card-login {
        max-width: 620px;
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding: 20px;
    }

    .auth-login-panel {
        padding: 20px 16px;
    }

    .auth-login-visual {
        min-height: 230px;
        padding: 24px;
    }

    .auth-login-visual-copy {
        max-width: 320px;
    }
}

@media (max-width: 520px) {
    .auth-page:has(.auth-card-login) {
        padding: 20px 12px 28px;
    }

    .auth-page:has(.auth-card-login) .auth-card-login {
        padding: 12px;
        border-radius: 18px;
        gap: 12px;
    }

    .auth-login-panel {
        padding: 18px 8px;
    }

    .auth-login-visual {
        display: none;
    }
}
/* APNAKHASRA LOGIN GRID DIRECT FIX */
.auth-card.auth-card-login {
    display: grid !important;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr) !important;
    align-items: stretch !important;
    gap: 28px !important;
    width: 100% !important;
    max-width: 1160px !important;
    box-sizing: border-box !important;
    padding: 24px !important;
    border-radius: 24px !important;
    background: #fff !important;
}

.auth-card.auth-card-login > .auth-login-panel {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
    padding: 24px 12px !important;
}

.auth-card.auth-card-login > .auth-login-visual {
    display: flex !important;
    position: relative;
    min-width: 0 !important;
    min-height: 540px !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    padding: 32px !important;
    border-radius: 20px !important;
    background: transparent !important;
}

@media (max-width: 900px) {
    .auth-card.auth-card-login {
        grid-template-columns: minmax(0, 1fr) !important;
        max-width: 620px !important;
    }

    .auth-card.auth-card-login > .auth-login-visual {
        min-height: 230px !important;
    }
}

@media (max-width: 520px) {
    .auth-card.auth-card-login {
        padding: 12px !important;
        gap: 12px !important;
    }

    .auth-card.auth-card-login > .auth-login-visual {
        display: none !important;
    }
}
/* APNAKHASRA LOGIN BACKGROUND IMAGE V2 */
.auth-card.auth-card-login > .auth-login-visual {
    background-color: #dbe5dc !important;
    background-image:
        linear-gradient(
            180deg,
            rgba(20, 55, 40, 0.12),
            rgba(20, 55, 40, 0.08)
        ),
        url("../images/login-property.jpg") !important;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.auth-card.auth-card-login .auth-login-visual-copy {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.auth-card.auth-card-login .auth-login-visual-copy h2 {
    color: #fff !important;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.25;
}

.auth-card.auth-card-login .auth-login-visual-copy p {
    color: #fff !important;
}
/* APNAKHASRA PRESERVE FULL LOGIN ARTWORK */
.auth-card.auth-card-login > .auth-login-visual {
    position: relative !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    min-width: 0 !important;
    min-height: 540px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    padding: 24px !important;
    border-radius: 20px !important;
    background-color: #ffffff !important;
    background-image: url("../images/login-property.jpg") !important;
    background-position: center !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

.auth-card.auth-card-login .auth-login-visual-copy {
    max-width: 350px !important;
    color: #ffffff !important;
    text-align: right !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65) !important;
}

.auth-card.auth-card-login .auth-login-visual-copy h2,
.auth-card.auth-card-login .auth-login-visual-copy p {
    color: #ffffff !important;
}
/* APNAKHASRA REMOVE DUPLICATE LOGIN TAGLINE */
.auth-card.auth-card-login .auth-login-visual-copy {
    display: none !important;
}
/* APNAKHASRA FINAL LOGIN VISUAL V1 */
.auth-card.auth-card-login > .auth-login-visual {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 787 / 709;
    overflow: hidden !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 22px !important;
    background-color: #e7f0e8 !important;
    background-image: url("../images/apnakhasra-login-visual.png") !important;
    background-position: center !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
}

.auth-card.auth-card-login .auth-login-visual-copy {
    display: none !important;
}

@media (max-width: 900px) {
    .auth-card.auth-card-login > .auth-login-visual {
        min-height: 0 !important;
        aspect-ratio: 787 / 709;
    }
}

@media (max-width: 520px) {
    .auth-card.auth-card-login > .auth-login-visual {
        display: none !important;
    }
}
/* APNAKHASRA LOGIN FINAL POLISH V1 */
.auth-card.auth-card-login {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) !important;
    gap: 32px !important;
    max-width: 1200px !important;
}

.auth-card.auth-card-login > .auth-login-panel {
    justify-content: center !important;
    padding: 32px 12px !important;
}

.auth-card.auth-card-login .auth-card-header {
    margin-bottom: 26px !important;
    text-align: center;
}

.auth-card.auth-card-login .auth-card-header h1 {
    margin-bottom: 10px !important;
    font-size: clamp(30px, 2.5vw, 36px) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.8px;
}

.auth-card.auth-card-login .auth-card-header p {
    font-size: 15px !important;
    line-height: 1.6 !important;
}

.auth-card.auth-card-login .auth-google-button {
    min-height: 52px !important;
    margin-top: 2px !important;
    border-radius: 12px !important;
}

.auth-card.auth-card-login .auth-divider {
    margin: 24px 0 !important;
}

.auth-card.auth-card-login .auth-form .app-form-group {
    margin-bottom: 19px !important;
}

.auth-card.auth-card-login .auth-form .app-input {
    min-height: 52px !important;
    padding: 12px 14px !important;
    border-radius: 11px !important;
}

.auth-card.auth-card-login .auth-submit {
    min-height: 52px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.auth-card.auth-card-login .auth-footer {
    margin-top: 22px !important;
    font-size: 14px !important;
}

@media (max-width: 900px) {
    .auth-card.auth-card-login {
        grid-template-columns: minmax(0, 1fr) !important;
        max-width: 620px !important;
        gap: 20px !important;
    }

    .auth-card.auth-card-login > .auth-login-panel {
        padding: 24px 16px !important;
    }
}

@media (max-width: 520px) {
    .auth-card.auth-card-login > .auth-login-panel {
        padding: 18px 8px !important;
    }
}
/* APNAKHASRA GOOGLE BUTTON BLUE GRADIENT V1 */
.auth-card.auth-card-login .auth-google-button {
    background: linear-gradient(115deg, #f7fbff 0%, #edf5ff 52%, #e1edff 100%) !important;
    border: 1px solid #c9dcf5 !important;
    color: #24476b !important;
    box-shadow: 0 4px 12px rgba(58, 112, 177, 0.09);
    transition: background 0.2s ease, border-color 0.2s ease,
                box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-card.auth-card-login .auth-google-button:hover {
    background: linear-gradient(115deg, #edf6ff 0%, #dceaff 55%, #cfe2ff 100%) !important;
    border-color: #a9c8ed !important;
    box-shadow: 0 6px 16px rgba(58, 112, 177, 0.15);
}

.auth-card.auth-card-login .auth-google-button:focus-visible {
    outline: 3px solid rgba(66, 133, 244, 0.28);
    outline-offset: 2px;
}
/* APNAKHASRA GOOGLE BUTTON DARK BLUE V2 */
.auth-card.auth-card-login .auth-google-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 11px !important;
    background: linear-gradient(115deg, #e7f0ff 0%, #d5e5ff 52%, #c4dbff 100%) !important;
    border: 1px solid #9bbce9 !important;
    color: #183e70 !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(38, 91, 160, 0.13);
    transition: background .2s ease, box-shadow .2s ease,
                border-color .2s ease, transform .2s ease;
}

.auth-card.auth-card-login .auth-google-button:hover {
    background: linear-gradient(115deg, #d9e8ff 0%, #c4dbff 52%, #aecdf8 100%) !important;
    border-color: #7fa6dc !important;
    box-shadow: 0 6px 16px rgba(38, 91, 160, 0.19);
}

.auth-card.auth-card-login .auth-google-icon {
    display: block;
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
}
/* APNAKHASRA LOGIN FIELD ICONS AND OPTIONS V1 */
.auth-card.auth-card-login .ak-auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.auth-card.auth-card-login .ak-auth-field-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #647789;
    pointer-events: none;
    z-index: 1;
}

.auth-card.auth-card-login .ak-auth-input-wrap .app-input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding-left: 43px !important;
    padding-right: 43px !important;
}

.auth-card.auth-card-login .ak-auth-password-toggle {
    position: absolute;
    right: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #647789;
    cursor: pointer;
}

.auth-card.auth-card-login .ak-auth-password-toggle svg {
    width: 19px;
    height: 19px;
}

.auth-card.auth-card-login .ak-auth-password-toggle:hover {
    background: #edf5ef;
    color: #276c4d;
}

.auth-card.auth-card-login .ak-auth-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 2px 0 18px;
    font-size: 13px;
}

.auth-card.auth-card-login .ak-auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #526477;
    cursor: pointer;
    line-height: 1.4;
}

.auth-card.auth-card-login .ak-auth-remember input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #21845c;
    cursor: pointer;
}

.auth-card.auth-card-login .ak-auth-forgot {
    color: #26714f;
    font-weight: 700;
    text-decoration: none;
}

.auth-card.auth-card-login .ak-auth-forgot:hover {
    color: #174d36;
    text-decoration: underline;
}

@media (max-width: 420px) {
    .auth-card.auth-card-login .ak-auth-options-row {
        font-size: 12px;
        gap: 8px;
    }
}
/* APNAKHASRA MOBILE LOGIN ARTWORK V1 */
/* Hidden on desktop: desktop continues using its existing right panel. */
.auth-card.auth-card-login .auth-login-mobile-artwork {
    display: none;
}

@media (max-width: 520px) {
    .auth-card.auth-card-login .auth-login-mobile-artwork {
        display: block;
        width: 100%;
        height: 142px;
        margin: 8px auto 2px;
        border-radius: 14px;
        background-color: #edf4ee;
        background-image: url("../images/apnakhasra-login-visual.png");
        background-position: center;
        background-repeat: no-repeat;
        background-size: auto 100%;
    }

    /* Hide the large desktop artwork only on mobile. */
    .auth-card.auth-card-login > .auth-login-visual {
        display: none !important;
    }
}
/* APNAKHASRA FORGOT PASSWORD REFINEMENT V1 */
.auth-page:has(.auth-card-forgot) {
    min-height: calc(100vh - 76px);
    box-sizing: border-box;
    padding: 40px 24px 56px;
    background: #f3f6f3;
}

.auth-page:has(.auth-card-forgot) .auth-card-forgot {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    column-gap: 52px;
    row-gap: 22px;
    width: 100%;
    max-width: 1120px;
    padding: 48px;
    box-sizing: border-box;
    border: 1px solid #e3ebe5;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(31, 58, 43, 0.07);
}

.auth-page:has(.auth-card-forgot) .auth-card-header {
    grid-column: 1;
    margin: 0;
    text-align: left;
}

.auth-page:has(.auth-card-forgot) .auth-card-header h1 {
    margin-bottom: 14px;
    font-family: "Manrope", "DM Sans", sans-serif;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
}

.auth-page:has(.auth-card-forgot) .auth-card-header p {
    max-width: 360px;
    font-size: 15px;
    line-height: 1.75;
}

.auth-page:has(.auth-card-forgot) .auth-form {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
    padding: 28px;
    border: 1px solid #e7eee8;
    border-radius: 18px;
    background: #fbfdfb;
}

.auth-page:has(.auth-card-forgot) .app-form-group {
    margin-bottom: 22px;
}

.auth-page:has(.auth-card-forgot) .auth-form label {
    display: block;
    margin-bottom: 9px;
    color: #263d31;
    font-size: 14px;
    font-weight: 600;
}

.auth-page:has(.auth-card-forgot) .auth-form .app-input {
    width: 100%;
    min-height: 50px;
    padding: 13px 15px;
    border: 1px solid #cfdccf;
    border-radius: 11px;
    background: #fff;
    box-sizing: border-box;
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-page:has(.auth-card-forgot) .auth-form .app-input:focus {
    border-color: #398261;
    outline: none;
    box-shadow: 0 0 0 3px rgba(57, 130, 97, .13);
}

.auth-page:has(.auth-card-forgot) .auth-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 2px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(120deg, #315f48, #27835f);
    box-shadow: 0 7px 18px rgba(36, 76, 58, .16);
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease;
}

.auth-page:has(.auth-card-forgot) .auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(36, 76, 58, .2);
}

.auth-page:has(.auth-card-forgot) .auth-footer {
    grid-column: 1;
    margin: 0;
    text-align: left;
    font-size: 14px;
}

.auth-page:has(.auth-card-forgot) .app-alert {
    grid-column: 1 / -1;
}

@media (max-width: 760px) {
    .auth-page:has(.auth-card-forgot) {
        min-height: calc(100vh - 68px);
        padding: 26px 14px 36px;
    }

    .auth-page:has(.auth-card-forgot) .auth-card-forgot {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        max-width: 560px;
        padding: 28px 22px;
        border-radius: 20px;
    }

    .auth-page:has(.auth-card-forgot) .auth-card-header,
    .auth-page:has(.auth-card-forgot) .auth-form,
    .auth-page:has(.auth-card-forgot) .auth-footer {
        grid-column: 1;
        grid-row: auto;
    }

    .auth-page:has(.auth-card-forgot) .auth-card-header {
        text-align: center;
    }

    .auth-page:has(.auth-card-forgot) .auth-card-header p {
        margin: 0 auto;
    }

    .auth-page:has(.auth-card-forgot) .auth-form {
        padding: 20px;
    }

    .auth-page:has(.auth-card-forgot) .auth-footer {
        text-align: center;
    }
}

@media (max-width: 420px) {
    .auth-page:has(.auth-card-forgot) .auth-card-forgot {
        padding: 24px 16px;
    }

    .auth-page:has(.auth-card-forgot) .auth-form {
        padding: 16px;
    }
}
/* APNAKHASRA PASSWORD RESET VERIFICATION LAYOUT */
.auth-page:has(.auth-card-password-reset-verify) {
    min-height: calc(100vh - 76px);
    box-sizing: border-box;
    padding: 36px 24px 48px;
    background: #f3f6f3;
}

.auth-card-password-reset-verify {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    align-items: stretch;
    gap: 28px;
    width: 100%;
    max-width: 1160px;
    padding: 24px;
    box-sizing: border-box;
    border: 1px solid #e2eae3;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(31, 58, 43, .07);
}

.auth-reset-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 22px 8px;
}

.auth-card-password-reset-verify .auth-card-header {
    margin-bottom: 24px;
    text-align: center;
}

.auth-card-password-reset-verify .auth-card-header h1 {
    font-family: "Manrope", "DM Sans", sans-serif;
    font-size: clamp(25px, 2.6vw, 34px);
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.auth-card-password-reset-verify .auth-card-header p {
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.auth-card-password-reset-verify .auth-form .app-form-group {
    margin-bottom: 18px;
}

.auth-card-password-reset-verify .auth-form .app-input {
    width: 100%;
    min-height: 50px;
    box-sizing: border-box;
    border-radius: 11px;
}

.auth-card-password-reset-verify .auth-submit {
    min-height: 50px;
    border-radius: 11px;
}

.auth-reset-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #e4eee6;
}

.auth-reset-visual img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    max-height: 590px;
    object-fit: contain;
    object-position: center;
}

/* Keep resend text legible during cooldown without enabling the button. */
.auth-card-password-reset-verify .otp-resend-button,
.auth-card-password-reset-verify .otp-resend-button:disabled {
    color: #294f3c !important;
    -webkit-text-fill-color: #294f3c !important;
    background: #dcebe1 !important;
    border: 1px solid #a9c9b5 !important;
    font-weight: 700;
    opacity: 1 !important;
}

.auth-card-password-reset-verify .otp-resend-button:disabled {
    cursor: not-allowed;
}

@media (max-width: 760px) {
    .auth-page:has(.auth-card-password-reset-verify) {
        min-height: auto;
        padding: 20px 12px 30px;
    }

    .auth-card-password-reset-verify {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        max-width: 540px;
        padding: 18px;
        border-radius: 20px;
    }

    .auth-reset-panel {
        padding: 10px 2px 4px;
    }

    .auth-card-password-reset-verify .auth-card-header {
        margin-bottom: 20px;
    }

    .auth-reset-visual {
        max-height: 155px;
        border-radius: 14px;
    }

    .auth-reset-visual img {
        width: 100%;
        height: 145px;
        min-height: 0;
        max-height: 145px;
    }
}

@media (max-width: 380px) {
    .auth-card-password-reset-verify {
        padding: 14px;
    }

    .auth-reset-visual,
    .auth-reset-visual img {
        max-height: 120px;
    }

    .auth-reset-visual img {
        height: 120px;
    }
}
/* APNAKHASRA RESET LAYOUT FINAL FIX V2 */
.auth-page:has(.auth-card-password-reset-verify) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    box-sizing: border-box;
}

.auth-page .auth-card-password-reset-verify {
    display: grid !important;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) !important;
    align-items: stretch !important;
    gap: 28px !important;
    width: 100% !important;
    max-width: 1160px !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
    padding: 24px !important;
}

.auth-page .auth-card-password-reset-verify > .auth-reset-panel {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 20px 8px !important;
}

.auth-page .auth-card-password-reset-verify > .auth-reset-panel form {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.auth-page .auth-card-password-reset-verify > .auth-reset-panel .app-input,
.auth-page .auth-card-password-reset-verify > .auth-reset-panel .auth-submit {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.auth-page .auth-card-password-reset-verify > .auth-reset-visual {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 420px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    border-radius: 18px !important;
    background: #e4eee6 !important;
}

.auth-page .auth-card-password-reset-verify > .auth-reset-visual img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 420px !important;
    max-height: 590px !important;
    object-fit: contain !important;
    object-position: center !important;
}

.auth-page .auth-card-password-reset-verify .otp-resend-button,
.auth-page .auth-card-password-reset-verify .otp-resend-button:disabled {
    color: #244d3b !important;
    -webkit-text-fill-color: #244d3b !important;
    background: #dcebe1 !important;
    border: 1px solid #a9c9b5 !important;
    opacity: 1 !important;
    font-weight: 700 !important;
}

@media (max-width: 760px) {
    .auth-page:has(.auth-card-password-reset-verify) {
        display: flex !important;
        align-items: flex-start !important;
        min-height: auto !important;
        padding: 20px 12px 30px !important;
    }

    .auth-page .auth-card-password-reset-verify {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: 540px !important;
        padding: 18px !important;
    }

    .auth-page .auth-card-password-reset-verify > .auth-reset-panel {
        padding: 10px 2px 4px !important;
    }

    .auth-page .auth-card-password-reset-verify > .auth-reset-visual {
        min-height: 0 !important;
        max-height: 155px !important;
    }

    .auth-page .auth-card-password-reset-verify > .auth-reset-visual img {
        width: 100% !important;
        height: 145px !important;
        min-height: 0 !important;
        max-height: 145px !important;
        object-fit: contain !important;
    }
}
/* APNAKHASRA FORGOT PASSWORD — LOGIN-MATCHING SPLIT LAYOUT */
.auth-page:has(.auth-card-forgot) .auth-card-forgot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    max-width: 1080px;
    padding: 0;
}

.auth-page:has(.auth-card-forgot) .auth-forgot-panel {
    min-width: 0;
    padding: clamp(28px, 4vw, 56px);
    align-self: center;
}

.auth-page:has(.auth-card-forgot) .auth-forgot-panel .auth-card-header {
    margin: 0 0 28px;
    text-align: left;
}

.auth-page:has(.auth-card-forgot) .auth-forgot-panel .auth-card-header h1 {
    margin-top: 0;
}

.auth-page:has(.auth-card-forgot) .auth-forgot-panel .auth-card-header p {
    max-width: 420px;
}

.auth-page:has(.auth-card-forgot) .auth-forgot-panel .auth-form {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.auth-page:has(.auth-card-forgot) .auth-forgot-panel .auth-footer {
    margin-top: 24px;
    text-align: left;
}

.auth-page:has(.auth-card-forgot) .auth-forgot-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
    min-height: 540px;
    overflow: hidden;
    isolation: isolate;
    background: #234b38;
}

.auth-page:has(.auth-card-forgot) .auth-forgot-visual img {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.auth-page:has(.auth-card-forgot) .auth-forgot-visual::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(16, 39, 27, 0.04) 20%,
        rgba(16, 39, 27, 0.82) 100%
    );
}

.auth-page:has(.auth-card-forgot) .auth-forgot-visual-copy {
    padding: 36px;
    color: #fff;
}

.auth-page:has(.auth-card-forgot) .auth-forgot-visual-copy h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(25px, 2.5vw, 36px);
    font-weight: 800;
    line-height: 1.2;
}

.auth-page:has(.auth-card-forgot) .auth-forgot-visual-copy p {
    max-width: 360px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    line-height: 1.7;
}

@media (max-width: 760px) {
    .auth-page:has(.auth-card-forgot) .auth-card-forgot {
        grid-template-columns: minmax(0, 1fr);
        max-width: 540px;
    }

    .auth-page:has(.auth-card-forgot) .auth-forgot-panel {
        padding: 30px 24px;
    }

    .auth-page:has(.auth-card-forgot) .auth-forgot-panel .auth-card-header {
        text-align: center;
    }

    .auth-page:has(.auth-card-forgot) .auth-forgot-panel .auth-card-header p {
        margin-right: auto;
        margin-left: auto;
    }

    .auth-page:has(.auth-card-forgot) .auth-forgot-panel .auth-footer {
        text-align: center;
    }

    .auth-page:has(.auth-card-forgot) .auth-forgot-visual {
        min-height: 220px;
    }

    .auth-page:has(.auth-card-forgot) .auth-forgot-visual-copy {
        padding: 24px;
    }
}

@media (max-width: 420px) {
    .auth-page:has(.auth-card-forgot) .auth-forgot-panel {
        padding: 26px 18px;
    }
}
/* APNAKHASRA PASSWORD ARTWORK FIT FIX V1 */
/* Preserve the full image, including its logo and text. */

/* Forgot Password */
.auth-page:has(.auth-card-forgot) .auth-forgot-visual {
    overflow: hidden;
    background-color: #e7f0e8;
}

.auth-page:has(.auth-card-forgot) .auth-forgot-visual img {
    object-fit: contain !important;
    object-position: center center !important;
}

/* Verify Password Reset */
.auth-page .auth-card-password-reset-verify > .auth-reset-visual {
    overflow: hidden;
    background-color: #e7f0e8;
}

.auth-page .auth-card-password-reset-verify > .auth-reset-visual img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
}

/* Mobile: give the complete image enough space to remain legible. */
@media (max-width: 760px) {
    .auth-page:has(.auth-card-forgot) .auth-forgot-visual {
        min-height: 0 !important;
        aspect-ratio: 787 / 709;
    }

    .auth-page:has(.auth-card-forgot) .auth-forgot-visual img {
        width: 100%;
        height: 100%;
    }

    .auth-page .auth-card-password-reset-verify > .auth-reset-visual {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: 787 / 709;
    }

    .auth-page .auth-card-password-reset-verify > .auth-reset-visual img {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
    }
}
/* APNAKHASRA CONSISTENT MOBILE ARTWORK V1 */
@media (max-width: 520px) {

    /* Login: retain the existing mobile artwork element. */
    .auth-card.auth-card-login .auth-login-mobile-artwork {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 787 / 709;
        margin: 12px auto 0 !important;
        border-radius: 14px;
        box-sizing: border-box;
        background-color: #edf4ee !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-size: contain !important;
        overflow: hidden;
    }

    /* Forgot Password: consistent gap and artwork proportions. */
    .auth-page:has(.auth-card-forgot) .auth-forgot-visual {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        aspect-ratio: 787 / 709;
        margin-top: 12px;
        border-radius: 14px;
        overflow: hidden;
        background-color: #edf4ee;
    }

    .auth-page:has(.auth-card-forgot) .auth-forgot-visual img {
        display: block;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center !important;
    }

    /* The artwork already contains its own headline and tagline. */
    .auth-page:has(.auth-card-forgot) .auth-forgot-visual-copy {
        display: none !important;
    }

    /* Verify Password: match the same image width, ratio and gap. */
    .auth-page .auth-card-password-reset-verify > .auth-reset-visual {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        aspect-ratio: 787 / 709;
        margin-top: 12px !important;
        border-radius: 14px;
        overflow: hidden;
        background-color: #edf4ee;
    }

    .auth-page .auth-card-password-reset-verify > .auth-reset-visual img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center !important;
    }
}
/* APNAKHASRA MOBILE LOGIN FOOTER ORDER V1 */
@media (max-width: 520px) {
    .auth-card.auth-card-login > .auth-login-panel {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Keep Create account immediately after the form. */
    .auth-card.auth-card-login .auth-footer {
        order: 2 !important;
        margin: 12px 0 0 !important;
        text-align: center !important;
    }

    /* Artwork follows the footer with a small gap. */
    .auth-card.auth-card-login .auth-login-mobile-artwork {
        order: 3 !important;
        margin: 12px auto 0 !important;
    }
}
/* APNAKHASRA PASSWORD PANEL FULL BLEED V1 */
/* Desktop only: artwork fills the right panel edge to edge. */
@media (min-width: 761px) {

    /* Forgot Password */
    .auth-page:has(.auth-card-forgot) .auth-card-forgot {
        padding: 0 !important;
        gap: 0 !important;
        overflow: hidden !important;
        align-items: stretch !important;
    }

    .auth-page:has(.auth-card-forgot) .auth-forgot-panel {
        align-self: stretch !important;
        box-sizing: border-box !important;
    }

    .auth-page:has(.auth-card-forgot) .auth-forgot-visual {
        align-self: stretch !important;
        min-height: 0 !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 24px 24px 0 !important;
        background: #e7f0e8 !important;
        overflow: hidden !important;
    }

    .auth-page:has(.auth-card-forgot) .auth-forgot-visual img {
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    /* Do not add a second text overlay on top of text in the artwork. */
    .auth-page:has(.auth-card-forgot) .auth-forgot-visual-copy {
        display: none !important;
    }

    /* Verify Password Reset */
    .auth-page .auth-card-password-reset-verify {
        padding: 0 !important;
        gap: 0 !important;
        overflow: hidden !important;
        align-items: stretch !important;
    }

    .auth-page .auth-card-password-reset-verify > .auth-reset-panel {
        align-self: stretch !important;
        padding: 32px !important;
    }

    .auth-page .auth-card-password-reset-verify > .auth-reset-visual {
        align-self: stretch !important;
        height: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 24px 24px 0 !important;
        overflow: hidden !important;
        background: #e7f0e8 !important;
    }

    .auth-page .auth-card-password-reset-verify > .auth-reset-visual img {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center !important;
    }
}
/* APNAKHASRA AUTH CARD LEFT CORNERS V1 */
/* Desktop: square the left edge; preserve rounded outer right corners. */
@media (min-width: 761px) {
    .auth-page:has(.auth-card-login) .auth-card-login,
    .auth-page:has(.auth-card-forgot) .auth-card-forgot,
    .auth-page .auth-card-password-reset-verify {
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
    }

    .auth-page:has(.auth-card-login) .auth-card-login > .auth-login-panel,
    .auth-page:has(.auth-card-forgot) .auth-forgot-panel,
    .auth-page .auth-card-password-reset-verify > .auth-reset-panel {
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
    }
}
/* APNAKHASRA PASSWORD PAGES MATCH LOGIN V1 */
/* Desktop proportions match the existing Login card: 0.9fr / 1.1fr,
   32px column gap, 1200px maximum width and 24px card padding. */
@media (min-width: 901px) {

    .auth-page:has(.auth-card-forgot) .auth-card-forgot,
    .auth-page .auth-card-password-reset-verify {
        display: grid !important;
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) !important;
        align-items: stretch !important;
        gap: 32px !important;
        width: 100% !important;
        max-width: 1200px !important;
        min-width: 0 !important;
        padding: 24px !important;
        box-sizing: border-box !important;
        border-radius: 24px !important;
        overflow: hidden !important;
        background: #fff !important;
    }

    .auth-page:has(.auth-card-forgot) .auth-forgot-panel,
    .auth-page .auth-card-password-reset-verify > .auth-reset-panel {
        min-width: 0 !important;
        align-self: stretch !important;
        padding: 32px 12px !important;
        box-sizing: border-box !important;
    }

    .auth-page:has(.auth-card-forgot) .auth-forgot-visual,
    .auth-page .auth-card-password-reset-verify > .auth-reset-visual {
        position: relative !important;
        min-width: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        align-self: stretch !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 22px !important;
        overflow: hidden !important;
        background: #e7f0e8 !important;
    }

    .auth-page:has(.auth-card-forgot) .auth-forgot-visual img,
    .auth-page .auth-card-password-reset-verify > .auth-reset-visual img {
        position: absolute !important;
        inset: 0 !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center center !important;
    }

    .auth-page:has(.auth-card-forgot) .auth-forgot-visual::after,
    .auth-page:has(.auth-card-forgot) .auth-forgot-visual-copy {
        display: none !important;
    }
}
/* AK FORGOT EMAIL ICON V1 */
.auth-page .ak-forgot-email-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.auth-page .ak-forgot-email-wrap .ak-auth-field-icon {
    position: absolute;
    z-index: 1;
    left: 15px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: #647b91;
    pointer-events: none;
}

.auth-page .ak-forgot-email-wrap .app-input {
    width: 100%;
    box-sizing: border-box;
    padding-left: 44px !important;
}

.auth-card.auth-card-login .ak-auth-password-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-card.auth-card-login .ak-auth-password-toggle svg {
    display: block;
    width: 20px;
    height: 20px;
}
/* APNAKHASRA MOBILE ARTWORK CONSISTENCY V2 */
/* Keep the three mobile artwork panels inset, proportional and uncropped. */
@media (max-width: 760px) {
    .auth-card.auth-card-login .auth-login-mobile-artwork,
    .auth-page:has(.auth-card-forgot) .auth-forgot-visual,
    .auth-page .auth-card-password-reset-verify > .auth-reset-visual {
        width: calc(100% - 24px) !important;
        max-width: none !important;
        min-width: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        aspect-ratio: 787 / 709 !important;
        margin: 12px auto !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        align-self: center !important;
        background-color: #edf4ee !important;
    }

    .auth-page:has(.auth-card-forgot) .auth-forgot-visual img,
    .auth-page .auth-card-password-reset-verify > .auth-reset-visual img {
        position: absolute !important;
        inset: 0 !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
}
/* APNAKHASRA LOGIN MOBILE ARTWORK WIDTH FIX V1 */
/* Restore Login artwork width without changing Forgot/Verify artwork. */
@media (max-width: 760px) {
    .auth-card.auth-card-login .auth-login-mobile-artwork {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }
}
/* APNAKHASRA MOBILE AUTH ARTWORK FLOW FIX V2 */
@media (max-width: 760px) {

    /* Keep password-reset cards in normal vertical document flow. */
    .auth-page .auth-card-password-reset-verify {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: minmax(0, 1fr) !important;
        align-items: stretch !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 620px !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .auth-page .auth-card-password-reset-verify > .auth-reset-panel {
        position: relative !important;
        inset: auto !important;
        order: 0 !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        transform: none !important;
        z-index: 1 !important;
        box-sizing: border-box !important;
    }

    /* The artwork container occupies space below the complete form. */
    .auth-page .auth-card-password-reset-verify > .auth-reset-visual {
        position: relative !important;
        inset: auto !important;
        order: 1 !important;
        flex: 0 0 auto !important;
        display: block !important;
        align-self: stretch !important;
        width: calc(100% - 24px) !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: 787 / 709 !important;
        margin: 12px auto 12px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 14px !important;
        overflow: hidden !important;
        transform: none !important;
        box-sizing: border-box !important;
        background: #edf4ee !important;
    }

    .auth-page .auth-card-password-reset-verify > .auth-reset-visual img {
        position: absolute !important;
        inset: 0 !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-width: 100% !important;
        max-height: none !important;
        margin: 0 !important;
        object-fit: contain !important;
        object-position: center center !important;
        transform: none !important;
    }

    /* Use the same artwork proportions and fitting on Forgot Password. */
    .auth-page:has(.auth-card-forgot) .auth-forgot-visual {
        position: relative !important;
        inset: auto !important;
        order: 1 !important;
        flex: 0 0 auto !important;
        width: calc(100% - 24px) !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: 787 / 709 !important;
        margin: 12px auto 12px !important;
        border-radius: 14px !important;
        overflow: hidden !important;
        transform: none !important;
        box-sizing: border-box !important;
        background: #edf4ee !important;
    }

    .auth-page:has(.auth-card-forgot) .auth-forgot-visual img {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center center !important;
    }

    .auth-page:has(.auth-card-forgot) .auth-forgot-visual-copy {
        display: none !important;
    }

    /* Keep Login artwork's established size and order. */
    .auth-page .auth-card-login .auth-login-mobile-artwork {
        flex: 0 0 auto !important;
        aspect-ratio: 787 / 709 !important;
        background-size: contain !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
}
/* APNAKHASRA MOBILE AUTH ARTWORK CONSISTENCY V3 */
@media (max-width: 760px) {

    /* Shared artwork sizing and spacing across all three auth pages. */
    .auth-page .auth-card-login .auth-login-mobile-artwork,
    .auth-page:has(.auth-card-forgot) .auth-forgot-visual,
    .auth-page .auth-card-password-reset-verify > .auth-reset-visual {
        position: relative !important;
        inset: auto !important;
        float: none !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        aspect-ratio: 787 / 709 !important;
        margin: 12px 0 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        border: 0 !important;
        border-radius: 14px !important;
        background-color: #e7f0e8 !important;
        flex: 0 0 auto !important;
        order: 3 !important;
    }

    /* Keep the complete image visible without cropping the logo/headline. */
    .auth-page:has(.auth-card-forgot) .auth-forgot-visual img,
    .auth-page .auth-card-password-reset-verify > .auth-reset-visual img {
        position: absolute !important;
        inset: 0 !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        object-fit: contain !important;
        object-position: center center !important;
    }

    /* Login uses a background image, so keep its complete artwork visible. */
    .auth-page .auth-card-login .auth-login-mobile-artwork {
        background-size: contain !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

    /* Keep the verify form and its controls ahead of the artwork. */
    .auth-page .auth-card-password-reset-verify {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        overflow: visible !important;
    }

    .auth-page .auth-card-password-reset-verify > .auth-reset-panel {
        position: relative !important;
        inset: auto !important;
        order: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .auth-page .auth-card-password-reset-verify > .auth-reset-visual {
        order: 1 !important;
    }

    /* Keep the Forgot Password form before its artwork. */
    .auth-page:has(.auth-card-forgot) .auth-forgot-panel {
        position: relative !important;
        order: 0 !important;
        min-width: 0 !important;
    }

    .auth-page:has(.auth-card-forgot) .auth-forgot-visual-copy {
        display: none !important;
    }
}
/* APNAKHASRA REGISTER SPLIT LAYOUT V1 */
.auth-page:has(.auth-card-register) {
    align-items: center;
}

.auth-page .auth-card.auth-card-register {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: stretch;
    gap: 32px;
    width: 100%;
    max-width: 1200px;
    min-width: 0;
    padding: 24px;
    box-sizing: border-box;
    border: 1px solid #e5ebe6;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(31, 58, 43, 0.07);
}

.auth-page .auth-register-panel {
    min-width: 0;
    align-self: center;
    padding: 24px 12px;
    box-sizing: border-box;
}

.auth-page .auth-card-register .auth-card-header {
    margin-bottom: 24px;
    text-align: center;
}

.auth-page .auth-card-register .auth-card-header h1 {
    font-family: Manrope, sans-serif;
    font-size: clamp(26px, 2.4vw, 34px);
    font-weight: 800;
    line-height: 1.2;
}

.auth-page .auth-card-register .auth-form .app-form-group {
    margin-bottom: 16px;
}

.auth-page .auth-card-register .auth-form .app-input,
.auth-page .auth-card-register .auth-form .app-select {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    border-radius: 11px;
}

.auth-page .auth-card-register .auth-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
    border-radius: 12px;
    background: linear-gradient(120deg, #315f48, #27835f);
    box-shadow: 0 6px 16px rgba(36, 76, 58, 0.16);
    font-weight: 700;
}

.auth-page .auth-card-register .auth-footer {
    margin: 18px 0 0;
    text-align: center;
    line-height: 1.5;
}

.auth-page .auth-register-visual {
    position: relative;
    align-self: stretch;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 22px;
    background: #e7f0e8;
}

.auth-page .auth-register-visual img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: center center;
}

/* Tablet and mobile: form first, artwork below it. */
@media (max-width: 900px) {
    .auth-page .auth-card.auth-card-register {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        max-width: 620px;
        padding: 20px;
    }

    .auth-page .auth-register-panel {
        width: 100%;
        padding: 12px 4px 0;
    }

    .auth-page .auth-register-visual {
        width: 100%;
        aspect-ratio: 787 / 709;
        min-height: 0;
        height: auto;
        margin-top: 12px;
        border-radius: 14px;
    }

    .auth-page .auth-register-visual img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

@media (max-width: 520px) {
    .auth-page .auth-card.auth-card-register {
        width: 100%;
        max-width: 100%;
        padding: 16px;
        gap: 8px;
        border-radius: 20px;
    }

    .auth-page .auth-register-panel {
        padding: 8px 0 0;
    }

    .auth-page .auth-card-register .auth-card-header {
        margin-bottom: 22px;
    }

    .auth-page .auth-card-register .auth-card-header p {
        line-height: 1.55;
    }

    .auth-page .auth-card-register .auth-form .app-form-group {
        margin-bottom: 14px;
    }

    .auth-page .auth-register-visual {
        margin-top: 12px;
        border-radius: 14px;
    }
}

/* =========================================================
   AK REGISTER FIELD ICONS V1
   Register form field icons and password visibility controls
   ========================================================= */

.auth-register-panel .ak-register-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.auth-register-panel .ak-register-input-wrap > input,
.auth-register-panel .ak-register-input-wrap > select {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.auth-register-panel .ak-register-input-wrap > input {
    padding-left: 44px !important;
}

.auth-register-panel .ak-register-input-wrap > select {
    padding-left: 44px !important;
}

.auth-register-panel .ak-register-field-icon {
    position: absolute;
    z-index: 2;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: #7b8794;
    pointer-events: none;
}

.auth-register-panel .ak-register-password-wrap > input {
    padding-right: 48px !important;
}

.auth-register-panel .ak-register-password-toggle {
    position: absolute;
    z-index: 3;
    right: 10px;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #687586;
    cursor: pointer;
}

.auth-register-panel .ak-register-password-toggle:hover {
    background: rgba(100, 116, 139, 0.10);
    color: #26364a;
}

.auth-register-panel .ak-register-password-toggle:focus-visible {
    outline: 2px solid #4778e6;
    outline-offset: 2px;
}

.auth-register-panel .ak-register-password-toggle .ak-eye-icon {
    display: block;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 576px) {
    .auth-register-panel .ak-register-field-icon {
        left: 12px;
    }

    .auth-register-panel .ak-register-input-wrap > input,
    .auth-register-panel .ak-register-input-wrap > select {
        padding-left: 40px !important;
    }

    .auth-register-panel .ak-register-password-wrap > input {
        padding-right: 44px !important;
    }
}
