/* Shared layout and glass controls for account, two-factor and recovery sign-in. */
.auth-shell.login.login-with-news-feed {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(440px, 34%);
    min-height: 100vh;
    min-height: 100svh;
    background: #f8fafc;
}

.auth-shell .back_image {
    background-image: url("/img/login-bg/ZeeUPlant2000x1943.png");
    background-position: center;
    filter: brightness(72%) saturate(85%);
}

.auth-shell.login.login-with-news-feed .news-feed {
    position: relative;
    right: auto;
    min-width: 0;
}

.auth-shell .news-feed::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 29, 37, 0.15), rgba(13, 30, 42, 0.78)),
        linear-gradient(90deg, rgba(12, 27, 34, 0.45), rgba(12, 27, 34, 0.12));
}

.auth-shell.login.login-with-news-feed .news-feed .news-caption {
    position: relative;
    inset: auto;
    z-index: 1;
    display: flex;
    align-items: center;
    height: 100%;
    padding: clamp(48px, 6vw, 112px);
    background: none;
}

.login-story {
    max-width: 640px;
}

.login-story-eyebrow {
    margin: 0 0 24px;
    color: #e0eeeb;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.auth-shell.login.login-with-news-feed .news-feed .news-caption .caption-title {
    margin: 0 0 24px;
    color: #fff;
    font-size: clamp(42px, 4.2vw, 64px);
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: -0.035em;
}

.caption-title span {
    display: block;
}

.caption-copy {
    max-width: 460px;
    margin: 0 0 40px;
    color: #e0e8e8;
    font-size: 18px;
    line-height: 1.65;
}

.login-story-points {
    display: grid;
    gap: 24px;
    margin: 0;
    padding: 32px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    list-style: none;
}

.login-story-point {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: #e0e8e8;
    font-size: 14px;
    line-height: 1.55;
}

.login-story-point-title {
    margin: 0 0 3px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.login-story-point p {
    margin: 0;
}

.login-story-point-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 1px solid rgba(203, 229, 221, 0.25);
    border-radius: 10px;
    background: rgba(203, 229, 221, 0.08);
    color: #cbe5dd;
    font-size: 14px;
}

.auth-shell.login.login-with-news-feed .login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 56px clamp(32px, 3.5vw, 72px);
    background: #f8fafc;
}

.login-panel {
    width: 100%;
    max-width: 400px;
}

.auth-shell.login.login-with-news-feed .login-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 48px !important;
    padding: 0;
}

.login-brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 600;
}

.login-brand-mark-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #29527f;
    color: #f8fafc;
    font-size: 15px;
}

.auth-shell.login.login-with-news-feed .login-content {
    position: relative;
    padding: 0;
}

.auth-shell .login-title {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: clamp(26px, 2.2vw, 32px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.login-intro {
    margin-bottom: 28px;
}

.login-intro p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.login-content .login-form {
    position: relative;
}

.auth-shell :is(button, a, input):focus-visible {
    outline: 3px solid #0f766e;
    outline-offset: 3px;
}

.auth-shell .login-language-pills {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border: 1px solid #c7d5e2;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(236, 243, 249, 0.65));
    box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(37, 65, 93, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.auth-shell .login-language-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
}

.auth-shell .login-language-pill:hover {
    background: rgba(255, 255, 255, 0.75);
    color: #172b40;
}

.auth-shell .login-language-pill.is-active {
    border-color: #9eb2c5;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(213, 228, 242, 0.92));
    color: #172b40;
    box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(37, 65, 93, 0.09);
}

.login-alert {
    border: 0;
    border-left: 4px solid #dc2626;
    border-radius: 14px;
    background: #fff1f2;
    color: #991b1b;
    font-size: 13px;
}

.auth-shell .login-content .form-control {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    box-shadow: none;
}

.auth-shell .login-content .form-control:focus {
    border-color: #0ea5a4;
    box-shadow: 0 0 0 4px rgba(14, 165, 164, 0.14);
}

.auth-shell .login-content .form-floating > label {
    color: #64748b !important;
    font-weight: 500;
}

.login-content .login-field-error {
    display: block;
    margin: -6px 0 14px;
    color: #b91c1c;
    font-size: 13px;
    line-height: 1.5;
}

.login-content .login-field-error:empty {
    display: none;
}

.login-password-wrap {
    position: relative;
}

.login-password-wrap .login-password-input {
    padding-right: 52px;
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    transform: translateY(-50%);
}

.login-password-toggle:hover {
    background: rgba(148, 163, 184, 0.12);
    color: #0f172a;
}

.login-form.is-loading .login-password-toggle {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.login-form-row {
    gap: 16px;
    margin-top: 10px;
}

.login.login-with-news-feed .login-remember {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-shell .login-remember .form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0;
    border: 1px solid #94a3b8;
}

.auth-shell .login-remember .form-check-input:checked {
    background-color: #0f766e;
    border-color: #0f766e;
}

.login.login-with-news-feed .login-remember-label {
    color: #64748b !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    opacity: 1 !important;
    margin-bottom: 0;
    cursor: pointer;
    user-select: none;
}

.login-support-link {
    color: #0f766e;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.login-support-link:hover {
    color: #115e59;
    text-decoration: underline;
}

.auth-shell.login.login-with-news-feed .login-content .btn.btn-portal.login-submit {
    border: 1px solid #bed0df;
    border-radius: var(--hub-btn-radius, 0.9rem) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(225, 235, 245, 0.85));
    color: #172b40;
    -webkit-text-fill-color: #172b40;
    font-weight: 600;
    letter-spacing: -0.01em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 3px 8px rgba(37, 65, 93, 0.09);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.auth-shell.login.login-with-news-feed .login-content .btn.btn-portal.login-submit:hover:not(:disabled) {
    border-color: #9eb2c5;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(213, 228, 242, 0.92));
    box-shadow: inset 0 1px 0 #fff, 0 5px 12px rgba(37, 65, 93, 0.12);
}

.auth-shell.login.login-with-news-feed .login-content .btn.btn-portal.login-submit:active:not(:disabled) {
    background: #dbe7f1;
    box-shadow: inset 0 1px 3px rgba(37, 65, 93, 0.14);
}

.auth-shell.login.login-with-news-feed .login-content .btn.btn-portal.login-submit:focus-visible {
    outline: 2px solid #6886a3;
    outline-offset: 3px;
}

.auth-shell.login.login-with-news-feed .login-content .btn.btn-portal.login-submit:disabled {
    opacity: 0.65;
    box-shadow: none;
    cursor: wait;
}

.auth-shell .login-alternative {
    margin: 24px 0 0;
    text-align: center;
}

.login-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-radius: 28px;
    background: rgba(248, 250, 252, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.login-loading-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.login-loading-panel {
    width: min(100%, 370px);
    padding: 26px 24px 22px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94)),
        #ffffff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
    text-align: center;
}

.login-loading-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
}

.login-loading-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #29527f;
    color: #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.login-loading-spinner {
    width: 62px;
    height: 62px;
    margin: 22px auto 18px;
    border-radius: 999px;
    border: 4px solid rgba(37, 82, 127, 0.16);
    border-top-color: #0ea5a4;
    border-right-color: #29527f;
    animation: login-loading-spin 0.9s linear infinite;
}

.login-loading-title {
    color: #0f172a;
    font-size: 1.32rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.login-loading-steps {
    display: grid;
    gap: 12px;
    margin: 20px 0 16px;
    justify-items: center;
    text-align: center;
}

.login-loading-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 600;
}

.login-loading-step span {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0ea5a4, #29527f);
    box-shadow: 0 0 0 5px rgba(14, 165, 164, 0.12);
}

.login-loading-footnote {
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.55;
}

.login-assurance {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

.login-assurance-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 999px;
    background: rgba(14, 165, 164, 0.12);
    color: #0f766e;
}

.login-footer-divider {
    margin: 28px 0 20px;
    border: 0;
    border-top: 1px solid #e2e8f0;
    opacity: 1;
}

.login-footer {
    color: #64748b !important;
    font-size: 13px;
}

@keyframes login-loading-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 991.98px) {
    .auth-shell.login.login-with-news-feed {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 46%);
    }

    .auth-shell.login.login-with-news-feed .news-feed .news-caption {
        padding: 48px 32px;
    }

    .auth-shell.login.login-with-news-feed .news-feed .news-caption .caption-title {
        font-size: 40px;
    }

    .caption-copy {
        font-size: 16px;
    }

    .auth-shell.login.login-with-news-feed .login-container {
        padding: 40px 28px;
    }
}

@media (max-width: 767.98px) {
    .auth-shell.login.login-with-news-feed {
        grid-template-columns: minmax(0, 1fr);
        background: radial-gradient(ellipse at top, #e8eff6, #f8fafc 65%);
    }

    .auth-shell.login.login-with-news-feed .news-feed {
        display: none;
    }

    .auth-shell.login.login-with-news-feed .login-container {
        padding: 36px 24px;
        background: transparent;
    }

    .auth-shell.login.login-with-news-feed .login-header {
        margin-bottom: 36px !important;
    }

    .auth-shell .login-content .form-control {
        font-size: 16px !important;
    }

    .login-form-row {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-loading-spinner {
        animation: none;
    }

    .login-loading-overlay {
        transition: none;
    }
}
