/*
 * Candidate login / register / forgot password and admin login (layouts/guest).
 * "How to apply" timeline (animated step icons) and the DigiLocker callout.
 * Plain CSS loaded after the main bundle; no build step.
 */

/* ---------- How to apply ---------- */
.app-howto {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    border: var(--ux4g-border-width-sm) solid var(--ux4g-color-secondary-200);
    border-radius: var(--ux4g-radius-lg);
    background: linear-gradient(160deg, rgb(255 255 255 / 0.92), rgb(255 255 255 / 0.75));
    backdrop-filter: blur(4px);
}

.app-howto-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--ux4g-text-neutral-primary);
    font-size: 16px;
    font-weight: var(--ux4g-fw-bold);
}

.app-howto-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--ux4g-radius-md);
    background: linear-gradient(135deg, var(--ux4g-bg-primary-strong), var(--ux4g-color-secondary-200));
    color: var(--ux4g-text-neutral-primary);
}

.app-howto-title-icon .ux4g-icon-outlined {
    color: inherit;
}

.app-howto-count {
    margin-left: auto;
    padding: 2px 10px;
    border-radius: var(--ux4g-radius-full);
    background-color: var(--ux4g-color-secondary-100);
    color: var(--ux4g-text-brand-primary-default);
    font-size: 11px;
    font-weight: var(--ux4g-fw-bold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.app-howto-steps {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Connecting line behind the bubbles; it "draws" downward on load */
.app-howto-steps::before {
    content: '';
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 19px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--ux4g-bg-primary-strong), var(--ux4g-color-secondary-100));
}

.app-howto-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 8px 4px 4px;
    border-radius: var(--ux4g-radius-md);
    transition: background-color 0.15s ease;
}

.app-howto-step:hover {
    background-color: var(--ux4g-color-secondary-50);
}

.app-howto-bubble {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 2px solid var(--ux4g-bg-neutral-elevated);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ux4g-color-secondary-100), var(--ux4g-bg-primary-strong));
    box-shadow: 0 2px 6px rgb(217 119 6 / 0.18);
    color: var(--ux4g-text-neutral-primary);
    transition: transform 0.18s ease;
}

.app-howto-bubble .ux4g-icon-outlined {
    color: inherit;
}

.app-howto-step:hover .app-howto-bubble {
    transform: scale(1.08);
}

.app-howto-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.app-howto-num {
    color: var(--ux4g-text-neutral-tertiary);
    font-size: 10px;
    font-weight: var(--ux4g-fw-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.app-howto-label {
    color: var(--ux4g-text-neutral-primary);
    font-size: 14px;
    font-weight: var(--ux4g-fw-semibold);
}

/* ---------- DigiLocker callout ---------- */
.app-dl-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    padding: 12px 14px;
    border: 1px solid #d9d0f5;
    border-radius: var(--ux4g-radius-lg);
    background: linear-gradient(120deg, #f6f3ff 0%, #ffffff 70%);
}

.app-dl-logo {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--ux4g-radius-md);
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgb(74 43 194 / 0.15);
}

.app-dl-logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.app-dl-text {
    flex: 1 1 auto;
    min-width: 0;
}

.app-dl-text p {
    margin: 0;
}

.app-dl-title {
    color: #301c7d;
    font-size: 14px;
    font-weight: var(--ux4g-fw-bold);
}

.app-dl-desc {
    color: var(--ux4g-text-neutral-secondary);
    font-size: 12px;
    line-height: 1.4;
}

.app-dl-chip {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 2px;
    padding: 3px 9px;
    border-radius: var(--ux4g-radius-full);
    background-color: #4a2bc2;
    color: #ffffff;
    font-size: 11px;
    font-weight: var(--ux4g-fw-bold);
}

.app-dl-chip .ux4g-icon-outlined {
    color: inherit;
}

/* ---------- Short laptop screens: keep everything visible ---------- */
@media (min-width: 992px) and (max-height: 860px) {
    .app-howto {
        gap: 6px;
        padding: 10px 14px;
    }

    .app-howto-num {
        display: none;
    }

    .app-howto-bubble {
        width: 28px;
        height: 28px;
    }

    .app-howto-steps::before {
        left: 17px;
    }

    .app-dl-card {
        padding: 8px 12px;
    }

    .app-dl-desc {
        display: none;
    }
}

@media (min-width: 992px) and (max-height: 700px) {
    .app-howto-step {
        padding-block: 1px;
    }

    .app-howto-label {
        font-size: 13px;
    }
}

/* ---------- Respect "reduce motion" ---------- */
@media (prefers-reduced-motion: reduce) {
    .app-guest *,
    .app-guest *::before,
    .app-guest *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- Compact left panel (about the same height as the login form) ---------- */
.app-login .app-login-aside {
    gap: 12px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.app-login .app-login-aside-head {
    gap: 6px;
}

.app-login .app-login-welcome {
    font-size: clamp(24px, 2.1vw, 30px);
}

.app-login .app-login-intro {
    font-size: 13px;
}

.app-howto {
    gap: 6px;
    padding: 10px 12px;
}

.app-howto-title {
    font-size: 15px;
}

.app-howto-title-icon {
    width: 26px;
    height: 26px;
}

.app-howto-step {
    gap: 10px;
    padding: 2px 6px 2px 2px;
}

.app-howto-bubble {
    width: 26px;
    height: 26px;
    border-width: 2px;
}

.app-howto-steps::before {
    top: 12px;
    bottom: 12px;
    left: 14px;
}

.app-howto-label {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13.5px;
    line-height: 1.3;
}

.app-dl-card {
    gap: 10px;
    padding: 8px 12px;
}

.app-dl-logo {
    width: 36px;
    height: 36px;
}

.app-dl-logo img {
    width: 24px;
    height: 24px;
}

.app-dl-title {
    font-size: 13.5px;
}

.app-dl-desc {
    font-size: 11.5px;
}

.app-login .app-login-help {
    padding: 8px 12px;
}

@media (min-width: 992px) and (max-height: 860px) {
    .app-howto-bubble {
        width: 24px;
        height: 24px;
    }

    .app-howto-steps::before {
        left: 13px;
    }
}

/* ---------- Rotating headline: "Shape the future of <field>" ---------- */
.app-login .app-login-welcome {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.15;
}

/* All phrases share one grid cell, so the line is as wide as the longest phrase and never jumps. */
.app-rotator {
    display: inline-grid;
    overflow: hidden;
    padding-bottom: 2px;
}

.app-rotator > span {
    grid-area: 1 / 1;
    background: linear-gradient(90deg, var(--ux4g-text-brand-primary-default), #c2410c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    white-space: nowrap;
    animation: app-auth-rotate 10s cubic-bezier(0.2, 0.7, 0.2, 1) infinite;
}

.app-rotator > span:nth-child(2) { animation-delay: 2.5s; }
.app-rotator > span:nth-child(3) { animation-delay: 5s; }
.app-rotator > span:nth-child(4) { animation-delay: 7.5s; }

@keyframes app-auth-rotate {
    0% {
        opacity: 0;
        transform: translateY(60%);
    }

    4%,
    22% {
        opacity: 1;
        transform: none;
    }

    26%,
    100% {
        opacity: 0;
        transform: translateY(-60%);
    }
}

/* Reduced motion: show the first phrase only, no rotation. */
@media (prefers-reduced-motion: reduce) {
    .app-rotator > span:first-child {
        opacity: 1;
    }
}

/* Headline on one line: "Shape the future of <field>" */
.app-login .app-login-welcome {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0.28em;
    font-size: clamp(19px, 1.25vw + 6px, 25px);
    white-space: nowrap;
}

/* Headline on two lines: "Join India's Premier R&D Institute" / "to work in <field>" */
.app-login .app-login-welcome {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    white-space: normal;
}

.app-welcome-line {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0.28em;
    white-space: nowrap;
}

/* ---------- Headline hierarchy: small lead-in, large hero line ---------- */
.app-login .app-login-welcome {
    gap: 6px;
    font-size: clamp(21px, 1.4vw + 7px, 28px);
    letter-spacing: -0.01em;
}

/* Line 1: lead-in with an accent bar */
.app-login .app-welcome-lead {
    align-items: center;
    gap: 10px;
    color: var(--ux4g-text-neutral-secondary);
    font-size: 0.6em;
    font-weight: var(--ux4g-fw-semibold);
    letter-spacing: 0.01em;
}

.app-login .app-welcome-lead::before {
    content: '';
    width: 22px;
    height: 3px;
    flex-shrink: 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--ux4g-bg-primary-strong), #c2410c);
}

/* Line 2: hero line */
.app-login .app-welcome-hero {
    color: var(--ux4g-text-neutral-primary);
    font-weight: var(--ux4g-fw-bold);
}

/* Highlighter under the rotating field */
.app-rotator {
    position: relative;
    isolation: isolate;
    padding-inline: 2px;
}

/* Highlighter behind each phrase, so it always matches that phrase's width.
   The gradient lives on the inner text, so it cannot tint the highlighter. */
.app-rotator > span {
    position: relative;
    justify-self: start;   /* as wide as this phrase, not the longest one */
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    color: inherit;
}


.app-rot-text {
    position: relative;
    z-index: 1;            /* text above the highlighter */
    background: linear-gradient(90deg, var(--ux4g-text-brand-primary-default), #c2410c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Animated step icons ----------
 * A highlight travels down the 7 steps (1.2 s each, 8.4 s loop): the current icon grows,
 * brightens and sends out a ripple, while a dot runs down the connecting line.
 * --i on each step is its position + 2 (set in the Blade partial).
 */
.app-howto-bubble {
    animation: app-step-active 8.4s ease-in-out infinite;
}

.app-howto-step {
    --step-delay: calc((var(--i, 2) - 2) * 1.2s);
}

.app-howto-step .app-howto-bubble,
.app-howto-step .app-howto-bubble::after,
.app-howto-step .app-howto-bubble .ux4g-icon-outlined {
    animation-delay: var(--step-delay);
}

/* Ripple ring */
.app-howto-bubble::after {
    content: '';
    position: absolute;
    inset: -2px;
    border: 2px solid rgb(245 158 11 / 0.55);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: app-step-ripple 8.4s ease-out infinite;
}

/* Icon gives a small hop when its step is active */
.app-howto-bubble .ux4g-icon-outlined {
    display: inline-block;
    animation: app-step-hop 8.4s ease-in-out infinite;
}

@keyframes app-step-active {
    0%, 14%, 100% {
        transform: scale(1);
        background: linear-gradient(135deg, var(--ux4g-color-secondary-100), var(--ux4g-bg-primary-strong));
        box-shadow: 0 2px 6px rgb(217 119 6 / 0.18);
    }

    5% {
        transform: scale(1.18);
        background: linear-gradient(135deg, #fcd34d, #f59e0b);
        box-shadow: 0 0 0 4px rgb(251 191 36 / 0.25), 0 4px 12px rgb(217 119 6 / 0.35);
    }
}

@keyframes app-step-ripple {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    3% {
        opacity: 0.9;
    }

    13%, 100% {
        opacity: 0;
        transform: scale(1.9);
    }
}

@keyframes app-step-hop {
    0%, 10%, 100% {
        transform: none;
    }

    4% {
        transform: translateY(-2px) rotate(-8deg);
    }

    7% {
        transform: translateY(0) rotate(4deg);
    }
}

/* Glowing dot running down the connecting line, in step with the highlight */
.app-howto-steps::after {
    content: '';
    position: absolute;
    left: 11px;
    top: 10px;
    z-index: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgb(251 191 36 / 0.3), 0 0 10px rgb(245 158 11 / 0.8);
    animation: app-step-dot 8.4s linear infinite;
}

@keyframes app-step-dot {
    0% {
        top: 10px;
        opacity: 0;
    }

    3% {
        opacity: 1;
    }

    86% {
        top: calc(100% - 18px);
        opacity: 1;
    }

    92%, 100% {
        top: calc(100% - 18px);
        opacity: 0;
    }
}

@media (min-width: 992px) and (max-height: 860px) {
    .app-howto-steps::after {
        left: 10px;
    }
}

/* ---------- Animated DigiLocker card (6 s loop) ---------- */
/* Light sweep across the card */
.app-dl-card::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 30%;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.75), transparent);
    transform: translateX(-150%) skewX(-20deg);
    pointer-events: none;
    animation: app-dl-sweep 6s ease-in-out infinite;
}

@keyframes app-dl-sweep {
    0%, 55% { transform: translateX(-150%) skewX(-20deg); }
    80%, 100% { transform: translateX(420%) skewX(-20deg); }
}

/* Logo floats and sends out a purple "sync" ring */
.app-dl-logo {
    position: relative;
    animation: app-dl-float 3s ease-in-out infinite;
}

.app-dl-logo::after {
    content: '';
    position: absolute;
    inset: -2px;
    border: 2px solid rgb(106 78 255 / 0.5);
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    animation: app-dl-ring 3s ease-out infinite;
}

@keyframes app-dl-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes app-dl-ring {
    0% { opacity: 0.9; transform: scale(1); }
    70%, 100% { opacity: 0; transform: scale(1.45); }
}

/* "Instant" chip: bolt zaps, shimmer sweeps across */
.app-dl-chip {
    position: relative;
    overflow: hidden;
}

.app-dl-chip::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 45%;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.55), transparent);
    transform: translateX(-130%) skewX(-20deg);
    animation: app-dl-chip-shine 6s ease-in-out infinite;
}

.app-dl-chip .ux4g-icon-outlined {
    display: inline-block;
    animation: app-dl-zap 6s ease-in-out infinite;
}

@keyframes app-dl-chip-shine {
    0%, 20% { transform: translateX(-130%) skewX(-20deg); }
    35%, 100% { transform: translateX(330%) skewX(-20deg); }
}

@keyframes app-dl-zap {
    0%, 14%, 30%, 100% { transform: none; opacity: 1; color: inherit; }
    17% { transform: scale(1.35) rotate(-10deg); color: #fde047; }
    20% { opacity: 0.35; }
    23% { transform: scale(1.2) rotate(6deg); opacity: 1; color: #fde047; }
}

/* DigiLocker tip is always shown (it carries the PDF / 1 MB requirement) */
.app-dl-desc {
    display: block !important;
}

.app-dl-desc strong {
    color: #4a2bc2;
    font-weight: var(--ux4g-fw-bold);
}

.app-dl-desc strong {
    white-space: nowrap;   /* keep "DigiLocker Drive" and "PDF (max 1 MB)" together */
}

/* ---------- DigiLocker: 3-chip flow instead of a sentence ---------- */
.app-dl-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 0;
    margin: 5px 0 0;
    padding: 0;
    list-style: none;
}

.app-dl-flow li {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px 2px 6px;
    border: 1px solid #d9d0f5;
    border-radius: 999px;
    background-color: #ffffff;
    color: #4a2bc2;
    font-size: 11px;
    font-weight: var(--ux4g-fw-bold);
    white-space: nowrap;
    animation: app-dl-chip-on 6s ease-in-out infinite;
    animation-delay: calc(var(--n, 0) * 0.6s);
}

.app-dl-flow li .ux4g-icon-outlined {
    font-size: 14px;
    color: inherit;
}

/* Chevron between chips */
.app-dl-flow li + li {
    margin-left: 18px;
    position: relative;
}

.app-dl-flow li + li::before {
    content: '›';
    position: absolute;
    left: -13px;
    color: #a08ce8;
    font-size: 16px;
    font-weight: var(--ux4g-fw-bold);
    line-height: 1;
}

/* Chips light up one after another */
@keyframes app-dl-chip-on {
    0%, 22%, 100% {
        border-color: #d9d0f5;
        background-color: #ffffff;
        color: #4a2bc2;
        box-shadow: none;
    }

    8%, 14% {
        border-color: #4a2bc2;
        background-color: #4a2bc2;
        color: #ffffff;
        box-shadow: 0 3px 10px rgb(74 43 194 / 0.3);
    }
}

/* The bolt in the last chip zaps */
.app-dl-flow li:last-child .ux4g-icon-outlined {
    display: inline-block;
    animation: app-dl-zap 6s ease-in-out infinite;
}

/* The old sentence and Instant chip are no longer used */
.app-dl-desc,
.app-dl-chip {
    display: none !important;
}

/* Keep the three DigiLocker chips on one line */
.app-dl-flow {
    flex-wrap: nowrap;
}

.app-dl-flow li {
    padding: 2px 7px 2px 5px;
}

.app-dl-flow li + li {
    margin-left: 14px;
}

.app-dl-flow li + li::before {
    left: -11px;
}

/* Phones: let the chips wrap, without the chevrons */
@media (max-width: 575px) {
    .app-dl-flow {
        flex-wrap: wrap;
        gap: 4px;
    }

    .app-dl-flow li + li {
        margin-left: 0;
    }

    .app-dl-flow li + li::before {
        display: none;
    }
}

/* ---------- How to apply: grid of mini step cards ---------- */
.app-howto-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.app-hstep {
    /* stage colours */
    --c: #d97706;
    --c-soft: #fef3c7;
    --c-grad: linear-gradient(135deg, #fde68a, #f59e0b);
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid var(--ux4g-border-color-neutral-subtle);
    border-radius: 10px;
    background-color: var(--ux4g-bg-neutral-elevated);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    animation: app-hstep-active 8.4s ease-in-out infinite;
    animation-delay: calc(var(--n, 0) * 1.2s);
}

.app-hstep.is-docs {
    --c: #4a2bc2;
    --c-soft: #ede9fe;
    --c-grad: linear-gradient(135deg, #c4b5fd, #6d4ef0);
}

.app-hstep.is-apply {
    --c: #1d4ed8;
    --c-soft: #dbeafe;
    --c-grad: linear-gradient(135deg, #93c5fd, #2563eb);
}

.app-hstep.is-done {
    --c: #15803d;
    --c-soft: #dcfce7;
    --c-grad: linear-gradient(135deg, #86efac, #16a34a);
}

/* Final step spans the full width, like a finish line */
.app-hstep.is-final {
    grid-column: 1 / -1;
    border-color: #bbf7d0;
    background: linear-gradient(90deg, #f0fdf4, var(--ux4g-bg-neutral-elevated));
}

.app-hstep:hover {
    transform: translateY(-2px);
    border-color: var(--c);
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.06);
}

.app-hstep-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--c-grad);
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.12);
    color: #ffffff;
}

.app-hstep-icon .ux4g-icon-outlined {
    font-size: 17px;
    color: inherit;
}

.app-hstep-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.app-hstep-num {
    color: var(--c);
    font-size: 10px;
    font-weight: var(--ux4g-fw-bold);
    letter-spacing: 0.08em;
}

.app-hstep-label {
    overflow: hidden;
    color: var(--ux4g-text-neutral-primary);
    font-size: 12.5px;
    font-weight: var(--ux4g-fw-semibold);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Travelling highlight: each card in turn lifts and lights up in its stage colour */
@keyframes app-hstep-active {
    0%, 14%, 100% {
        transform: none;
        border-color: var(--ux4g-border-color-neutral-subtle);
        box-shadow: none;
    }

    4%, 10% {
        transform: translateY(-2px);
        border-color: var(--c);
        box-shadow: 0 0 0 3px var(--c-soft), 0 6px 14px rgb(0 0 0 / 0.08);
    }
}

.app-hstep.is-final {
    animation-name: app-hstep-active-final;
}

@keyframes app-hstep-active-final {
    0%, 14%, 100% {
        transform: none;
        border-color: #bbf7d0;
        box-shadow: none;
    }

    4%, 10% {
        transform: translateY(-2px);
        border-color: var(--c);
        box-shadow: 0 0 0 3px var(--c-soft), 0 6px 14px rgb(0 0 0 / 0.08);
    }
}

.app-hstep-icon {
    animation: app-hstep-icon 8.4s ease-in-out infinite;
    animation-delay: inherit;
}

.app-hstep .app-hstep-icon {
    animation-delay: calc(var(--n, 0) * 1.2s);
}

@keyframes app-hstep-icon {
    0%, 14%, 100% { transform: none; }
    5% { transform: scale(1.12) rotate(-6deg); }
    9% { transform: scale(1.05) rotate(3deg); }
}

/* Short laptop screens: a little tighter */
@media (min-width: 992px) and (max-height: 860px) {
    .app-hstep {
        padding: 4px 7px;
    }

    .app-hstep-icon {
        width: 26px;
        height: 26px;
    }

    .app-hstep-icon .ux4g-icon-outlined {
        font-size: 15px;
    }
}

/* Phones: one column */
@media (max-width: 420px) {
    .app-howto-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* "Need help?" is one button that opens the Contact support dialog */
.app-login-help.app-login-help-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 1px solid var(--ux4g-border-color-neutral-subtle);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.app-login-help-btn .ux4g-body-s-strong {
    flex: 1 1 auto;
    color: var(--ux4g-text-neutral-primary);
}

.app-login-help-arrow {
    color: var(--ux4g-text-brand-primary-default);
    transition: transform 0.15s ease;
}

.app-login-help-btn:hover,
.app-login-help-btn:focus-visible {
    border-color: var(--ux4g-border-color-primary-default);
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.06);
    transform: translateY(-1px);
}

.app-login-help-btn:hover .app-login-help-arrow {
    transform: translateX(3px);
}

.app-login-help-btn:focus-visible {
    outline: 2px solid var(--ux4g-border-color-primary-hover);
    outline-offset: 2px;
}

/* DigiLocker card: one clear sentence */
.app-dl-sentence {
    margin: 2px 0 0;
    color: #3d239f;
    font-size: 12.5px;
    line-height: 1.45;
}

.app-dl-sentence strong {
    color: #4a2bc2;
    font-weight: var(--ux4g-fw-bold);
    white-space: nowrap;
}

/* DigiLocker title as a badge */
.app-dl-title {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #4a2bc2, #6d4ef0);
    box-shadow: 0 2px 6px rgb(74 43 194 / 0.25);
    color: #ffffff !important;
    font-size: 12px !important;
    letter-spacing: 0.01em;
}

/* DigiLocker sentence: one line, neutral text, purple highlights */
.app-dl-sentence {
    color: var(--ux4g-text-neutral-secondary, #475467);
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-dl-sentence strong {
    color: #4a2bc2;
    white-space: normal;
}

.app-dl-sentence {
    font-size: 12px;
}

.app-dl-sentence strong {
    white-space: nowrap;
}

/* Space between the DigiLocker badge and its sentence */
.app-dl-sentence {
    margin-top: 6px;
}

/* (more specific than ".app-dl-text p { margin: 0 }") */
.app-dl-text .app-dl-sentence {
    margin-top: 8px;
}

/* DigiLocker badge: light style */
.app-dl-title {
    border: 1px solid #d9d0f5;
    background: #f1edff;
    box-shadow: none;
    color: #4a2bc2 !important;
}

.app-dl-sentence {
    font-size: 11.5px;
}
