/* SeekUnknown authentication flow — aligned with the homepage research system. */

body.auth-research-page {
    min-height: 100svh;
    margin: 0;
    overflow-x: hidden;
    color: var(--research-ink);
}

body.auth-research-page .auth-skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    background: var(--research-ink);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-180%);
    transition: transform 0.2s ease;
}

body.auth-research-page .auth-skip-link:focus {
    transform: translateY(0);
}

body.auth-research-page .nav {
    min-height: 64px;
}

body.auth-research-page .nav-links a.is-current {
    background: var(--research-soft);
    color: var(--research-ink);
}

body.auth-research-page .auth-research-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.78fr);
    gap: clamp(2.5rem, 7vw, 6.75rem);
    align-items: center;
    width: min(1120px, calc(100% - clamp(28px, 7vw, 104px)));
    min-height: calc(100svh - 64px);
    margin-inline: auto;
    padding: clamp(3.5rem, 8vw, 7.5rem) 0;
}

body.auth-research-page .auth-research-intro,
body.auth-research-page .auth-card {
    min-width: 0;
}

body.auth-research-page .auth-research-intro {
    position: relative;
    max-width: 42rem;
}

body.auth-research-page .auth-research-intro::after {
    content: "";
    position: absolute;
    top: -2.2rem;
    right: clamp(-2rem, -4vw, -0.5rem);
    width: clamp(7rem, 15vw, 11rem);
    aspect-ratio: 1;
    border: 1px solid rgba(49, 89, 216, 0.22);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, var(--research-blue) 0 3px, transparent 4px),
        linear-gradient(32deg, transparent 48.8%, rgba(49, 89, 216, 0.34) 49%, rgba(49, 89, 216, 0.34) 51%, transparent 51.2%),
        linear-gradient(138deg, transparent 48.8%, rgba(4, 81, 196, 0.2) 49%, rgba(4, 81, 196, 0.2) 51%, transparent 51.2%);
    box-shadow:
        inset 0 0 0 1.4rem rgba(49, 89, 216, 0.025),
        inset 0 0 0 2.9rem rgba(49, 89, 216, 0.025);
    pointer-events: none;
}

body.auth-research-page .auth-research-kicker {
    margin: 0 0 0.9rem;
    color: var(--research-blue);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}

body.auth-research-page .auth-research-intro h1 {
    position: relative;
    z-index: 1;
    max-width: 11ch;
    margin: 0;
    color: var(--research-ink);
    font-size: clamp(2.7rem, 6.4vw, 5.6rem);
    font-weight: 800;
    line-height: 0.99;
    letter-spacing: -0.065em;
}

body.auth-research-page .auth-research-lede {
    position: relative;
    z-index: 1;
    max-width: 39rem;
    margin: 1.35rem 0 0;
    color: var(--research-muted);
    font-size: clamp(1rem, 1.45vw, 1.13rem);
    line-height: 1.85;
}

body.auth-research-page .auth-benefits {
    display: grid;
    gap: 0.8rem;
    margin: clamp(1.8rem, 4vw, 2.6rem) 0 0;
    padding: 0;
    list-style: none;
}

body.auth-research-page .auth-benefits li {
    display: grid;
    grid-template-columns: 2.35rem minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
    padding: 0.85rem 0;
    border-top: 1px solid var(--research-line);
}

body.auth-research-page .auth-benefit-mark {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border: 1px solid rgba(49, 89, 216, 0.26);
    border-radius: 0.75rem;
    background: #edf4ff;
    color: var(--research-blue-deep);
    font: 700 0.68rem/1 "IBM Plex Mono", monospace;
}

body.auth-research-page .auth-benefits li:nth-child(2) .auth-benefit-mark {
    background: #e8fbff;
}

body.auth-research-page .auth-benefits li:nth-child(3) .auth-benefit-mark {
    background: #fff6d9;
}

body.auth-research-page .auth-benefit-copy {
    display: grid;
    gap: 0.2rem;
}

body.auth-research-page .auth-benefit-copy strong {
    color: var(--research-ink);
    font-size: 0.96rem;
    line-height: 1.5;
}

body.auth-research-page .auth-benefit-copy small {
    color: var(--research-muted);
    font-size: 0.78rem;
    line-height: 1.65;
}

body.auth-research-page .auth-research-assurance {
    display: grid;
    gap: 0.7rem;
    max-width: 37rem;
    margin: 2rem 0 0;
    padding: 1rem 1.1rem;
    border-left: 4px solid var(--research-blue);
    border-radius: 0 0.8rem 0.8rem 0;
    background: rgba(255, 255, 255, 0.64);
    color: var(--research-muted);
    font-size: 0.84rem;
    line-height: 1.7;
}

body.auth-research-page .auth-research-assurance strong {
    color: var(--research-ink);
}

body.auth-research-page .auth-card.glass,
body.auth-research-page .auth-card.glass:hover {
    width: 100%;
    max-width: 31rem;
    margin: 0;
    padding: clamp(1.35rem, 4vw, 2.2rem);
    border: 1px solid var(--research-line);
    border-top: 6px solid var(--research-blue);
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(25, 30, 46, 0.06), 0 18px 46px rgba(25, 30, 46, 0.1);
    transform: none;
    backdrop-filter: none;
}

body.auth-research-page .auth-card.glass::before {
    display: none;
}

body.auth-research-page .auth-research-card-head {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1.4rem;
}

body.auth-research-page .auth-research-card-head .label {
    margin: 0;
    color: var(--research-blue);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

body.auth-research-page .auth-research-card-head h2 {
    margin: 0;
    color: var(--research-ink);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

body.auth-research-page .auth-research-card-head p:not(.label) {
    margin: 0;
    color: var(--research-muted);
    font-size: 0.86rem;
    line-height: 1.7;
}

body.auth-research-page .auth-form {
    gap: 1rem;
}

body.auth-research-page .auth-field {
    gap: 0.45rem;
}

body.auth-research-page .auth-label {
    color: var(--research-ink);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

body.auth-research-page .auth-input {
    min-height: 50px;
    padding: 0.78rem 0.9rem;
    border: 1px solid #b9c5d6;
    border-radius: 0.78rem;
    background: #f9fbfe;
    color: var(--research-ink);
    font-size: 1rem;
    line-height: 1.35;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

body.auth-research-page .auth-input:hover {
    border-color: #8fa1bd;
}

body.auth-research-page .auth-input:focus {
    outline: none;
    border-color: var(--research-blue);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(49, 89, 216, 0.16);
}

body.auth-research-page .auth-actions {
    align-items: center;
}

body.auth-research-page .auth-primary-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    margin-top: 0.25rem;
}

body.auth-research-page .auth-primary-actions :is(.primary-btn, .ghost-btn) {
    width: 100%;
    min-height: 48px;
}

body.auth-research-page .auth-primary-actions .ghost-btn {
    border-color: transparent;
    background: transparent;
    color: var(--research-blue-deep);
}

body.auth-research-page .auth-text-actions {
    justify-content: flex-end;
    margin-top: -0.25rem;
}

body.auth-research-page .auth-text-link {
    min-height: 44px;
    padding: 0.55rem 0;
    border: 0;
    background: transparent;
    color: var(--research-blue-deep);
    font-size: 0.82rem;
    font-weight: 650;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

body.auth-research-page .auth-text-link:hover {
    background: transparent;
    color: var(--research-ink);
    transform: none;
}

body.auth-research-page .auth-error {
    margin: 0 0 1rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(190, 52, 52, 0.34);
    border-radius: 0.75rem;
    background: #fff1f1;
    color: #982b2b;
    font-size: 0.84rem;
    line-height: 1.65;
}

body.auth-research-page .auth-status {
    margin: 0 0 1rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(22, 131, 111, 0.28);
    border-radius: 0.75rem;
    background: #ecf9f5;
    color: #176454;
    font-size: 0.86rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

body.auth-research-page .auth-hint {
    margin: 0;
    color: var(--research-muted);
    font-size: 0.76rem;
    line-height: 1.7;
}

body.auth-research-page .auth-card > p:not([class]),
body.auth-research-page .auth-card > p.langEn,
body.auth-research-page .auth-card > p.langJp {
    color: var(--research-muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

body.auth-research-page .auth-card :is(a, button):focus-visible,
body.auth-research-page .nav :is(a, button):focus-visible {
    outline: 3px solid var(--research-blue-deep);
    outline-offset: 3px;
}

body.auth-research-page .auth-card input:focus-visible {
    outline: none;
}

@media (max-width: 900px) {
    body.auth-research-page .auth-research-shell {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
        min-height: auto;
        padding: clamp(3rem, 9vw, 5rem) 0;
    }

    body.auth-research-page .auth-research-intro,
    body.auth-research-page .auth-card.glass {
        max-width: 42rem;
        margin-inline: auto;
    }

    body.auth-research-page .auth-research-intro h1 {
        max-width: 13ch;
    }

    body.auth-research-page .auth-benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.65rem;
    }

    body.auth-research-page .auth-benefits li {
        grid-template-columns: 1fr;
        align-content: start;
        padding: 0.9rem;
        border: 1px solid var(--research-line);
        border-radius: 0.9rem;
        background: rgba(255, 255, 255, 0.68);
    }
}

@media (max-width: 680px) {
    body.auth-research-page .nav {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.65rem;
        padding: 0.7rem 1rem;
    }

    body.auth-research-page .nav-links {
        display: none;
    }

    body.auth-research-page .nav-actions {
        width: auto;
        justify-content: flex-end;
    }

    body.auth-research-page .nav-auth {
        flex-wrap: nowrap;
    }

    body.auth-research-page .nav-user {
        display: none;
    }

    body.auth-research-page .nav .ghost-btn {
        min-height: 42px;
        padding: 0.55rem 0.72rem;
        white-space: nowrap;
    }

    body.auth-research-page .auth-research-shell {
        width: min(100% - 2rem, 42rem);
        gap: 2rem;
        padding: 2.6rem 0 3.5rem;
    }

    body.auth-research-page .auth-research-intro::after {
        top: -1.4rem;
        right: -1.5rem;
        width: 7rem;
        opacity: 0.7;
    }

    body.auth-research-page .auth-research-intro h1 {
        font-size: clamp(2.45rem, 13vw, 3.45rem);
    }

    body.auth-research-page .auth-research-lede {
        margin-top: 1rem;
        font-size: 0.96rem;
        line-height: 1.75;
    }

    body.auth-research-page .auth-benefits {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.65rem;
        margin-top: 1.45rem;
    }

    body.auth-research-page .auth-benefits li {
        grid-template-columns: 2.25rem minmax(0, 1fr);
        padding: 0.8rem;
    }

    body.auth-research-page .auth-benefit-copy small {
        font-size: 0.75rem;
    }

    body.auth-research-page .auth-card.glass,
    body.auth-research-page .auth-card.glass:hover {
        padding: 1.25rem;
        border-radius: 1rem;
    }
}

@media (max-width: 420px) {
    body.auth-research-page .brand-logo {
        width: 126px;
    }

    body.auth-research-page .nav-auth .ghost-btn.tiny {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.auth-research-page .auth-skip-link,
    body.auth-research-page .auth-input {
        transition: none;
    }
}
