/* ============================================================
   IntelliShift Auth Pages
   Shared visual language for login and password recovery.
   ============================================================ */

:root {
    --accent: #f3c14b;
    --accent-light: #ffe8a3;
    --accent-dark: #c48715;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --text-main: #1f2937;
    --text-soft: #334155;
    --text-muted: #6b7280;
    --border-soft: rgba(148, 163, 184, 0.22);
    --border-strong: rgba(243, 193, 75, 0.35);
    --success-bg: #edf8ef;
    --success-text: #21603a;
    --error-bg: #fff1f0;
    --error-text: #9d2f2a;
    --radius: 26px;
    --radius-sm: 16px;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.13);
    --shadow-hover: 0 28px 72px rgba(15, 23, 42, 0.16);
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: stretch;
    font-family: "Segoe UI", "Inter", "Poppins", Arial, sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0) 34%),
        radial-gradient(circle at 84% 16%, rgba(243, 193, 75, 0.3) 0%, rgba(243, 193, 75, 0) 24%),
        radial-gradient(circle at 24% 78%, rgba(75, 129, 194, 0.22) 0%, rgba(75, 129, 194, 0) 28%),
        radial-gradient(circle at 78% 82%, rgba(255, 226, 168, 0.2) 0%, rgba(255, 226, 168, 0) 26%),
        linear-gradient(145deg, #fff8e7 0%, #f6eadd 34%, #eef4ff 68%, #e6efff 100%);
    overflow-x: hidden;
    overflow-y: auto;
    background-size: 165% 165%, 155% 155%, 180% 180%, 180% 180%, 230% 230%;
    background-position: 14% 18%, 84% 16%, 24% 78%, 78% 82%, 0% 50%;
    animation: authBackgroundShift 14s linear infinite alternate;
}

body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
    filter: blur(12px);
}

body::before {
    width: 360px;
    height: 360px;
    top: 3%;
    left: 3%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.74) 0%, rgba(255, 255, 255, 0) 72%);
    animation:
        floatAccent 11s ease-in-out infinite,
        authOrbShift 15s ease-in-out infinite;
}

body::after {
    width: 420px;
    height: 420px;
    right: 4%;
    bottom: 6%;
    background: radial-gradient(circle, rgba(243, 193, 75, 0.18) 0%, rgba(243, 193, 75, 0) 72%);
    animation:
        floatAccent 13s ease-in-out infinite reverse,
        authOrbShift 16s ease-in-out infinite;
}

.auth-page-shell::before,
.auth-page-shell::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
    border-radius: 999px;
    filter: blur(12px);
}

.auth-page-shell::before {
    width: 420px;
    height: 420px;
    left: -110px;
    bottom: -120px;
    background: radial-gradient(circle, rgba(29, 53, 87, 0.16) 0%, rgba(29, 53, 87, 0) 68%);
    animation: authOrbFloat 22s ease-in-out infinite;
}

.auth-page-shell::after {
    width: 360px;
    height: 360px;
    top: 7%;
    right: -84px;
    background: radial-gradient(circle, rgba(243, 193, 75, 0.16) 0%, rgba(243, 193, 75, 0) 70%);
    animation: authOrbFloat 24s ease-in-out infinite reverse;
}

@keyframes floatAccent {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -18px, 0);
    }
}

@keyframes authBackgroundShift {
    0% {
        background-position: 14% 18%, 84% 16%, 24% 78%, 78% 82%, 0% 50%;
    }

    50% {
        background-position: 8% 10%, 92% 10%, 16% 86%, 68% 72%, 100% 50%;
    }

    100% {
        background-position: 18% 22%, 76% 24%, 34% 72%, 84% 90%, 0% 50%;
    }
}

@keyframes authOrbFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(26px, -18px, 0) scale(1.06);
    }
}

@keyframes authOrbShift {
    0%,
    100% {
        opacity: 0.9;
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate3d(-24px, 16px, 0) scale(1.05);
    }
}

@keyframes authCardEntrance {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroGradientShift {
    0%,
    100% {
        background-position: 0% 0%, 16% 18%, 84% 28%, 46% 92%, 0% 50%;
    }

    50% {
        background-position: 0% 0%, 28% 10%, 68% 46%, 56% 86%, 100% 50%;
    }
}

@keyframes heroOrbDriftOne {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.88;
    }

    50% {
        transform: translate3d(18px, -16px, 0) scale(1.08);
        opacity: 1;
    }
}

@keyframes heroOrbDriftTwo {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.72;
    }

    50% {
        transform: translate3d(-24px, 18px, 0) scale(1.1);
        opacity: 0.92;
    }
}

@keyframes heroSheen {
    0%,
    100% {
        transform: translateX(-8%) translateY(0);
        opacity: 0.22;
    }

    50% {
        transform: translateX(8%) translateY(-3%);
        opacity: 0.34;
    }
}

.container,
.container > main {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    padding: 0;
}

.login-wrapper {
    width: 100%;
    min-height: 100vh;
    padding: clamp(64px, 7vh, 88px) clamp(18px, 2.5vw, 32px) clamp(24px, 3.5vh, 40px);
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.auth-page-shell {
    position: relative;
}

.app-grid {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    position: relative;
    width: min(100%, 1060px);
    border-radius: var(--radius);
    padding: 24px 22px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 249, 238, 0.9));
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    animation: authCardEntrance 0.7s cubic-bezier(.22, 1, .36, 1);
}

.login-container::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--radius) - 1px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.login-container:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(243, 193, 75, 0.28);
}

.login-shell {
    width: min(100%, 940px);
    min-height: min(620px, calc(100vh - 108px));
    max-height: calc(100vh - 108px);
    padding: clamp(10px, 1.2vw, 14px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
    align-items: stretch;
    gap: clamp(12px, 1.2vw, 16px);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.22)),
        rgba(255, 255, 255, 0.32);
    overflow: clip;
}

.login-wrapper-centered {
    justify-content: center;
}

.login-shell-centered {
    width: min(100%, 980px);
    min-height: min(620px, calc(100vh - 108px));
    max-height: none;
    grid-template-columns: minmax(0, 1.06fr) minmax(320px, 390px);
    justify-items: stretch;
    align-content: center;
    gap: clamp(16px, 2vw, 24px);
    padding: clamp(18px, 2.2vw, 26px);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 251, 242, 0.62)),
        rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.46);
}

.login-shell-centered .login-showcase {
    width: 100%;
    min-height: clamp(340px, 46vh, 460px);
    padding: clamp(28px, 3.6vw, 40px);
    gap: 18px;
    border-radius: calc(var(--radius) - 6px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -18px 36px rgba(8, 18, 34, 0.14),
        0 20px 44px rgba(15, 23, 42, 0.1);
}

.login-shell-centered .showcase-title {
    max-width: 12ch;
    font-size: clamp(1.85rem, 3.25vw, 2.85rem);
}

.login-shell-centered .showcase-text {
    max-width: 44ch;
    font-size: 0.9rem;
}

.login-shell-centered .showcase-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
}

.login-shell-centered .login-panel {
    width: 100%;
    margin: 0;
    align-self: center;
    padding: clamp(18px, 1.8vw, 22px);
    border: 1px solid rgba(226, 232, 240, 0.78);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.84),
        inset 0 -16px 30px rgba(91, 137, 196, 0.05),
        0 28px 60px rgba(15, 23, 42, 0.16);
}

.login-shell-centered .auth-branding {
    flex-wrap: nowrap;
}

.login-shell-centered .auth-brand-copy {
    gap: 4px;
}

.login-shell-centered .auth-brand-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.login-shell-centered .auth-brand-subtitle,
.login-shell-centered .auth-helper-text {
    color: #607086;
}

.login-shell-centered .btn-primary {
    margin-top: 10px;
}


.login-shell-centered .showcase-highlights {
    margin-top: auto;
    align-self: flex-start;
}


.login-showcase,
.login-panel,
.auth-branding,
.auth-brand-copy,
.login-form,
.form-field {
    position: relative;
    z-index: 1;
}

.login-showcase {
    isolation: isolate;
    padding: clamp(24px, 3vw, 32px);
    border-radius: calc(var(--radius) - 10px);
    background:
        linear-gradient(160deg, #0d1b2f 0%, #173354 28%, #234d77 58%, #183556 100%),
        radial-gradient(circle at 16% 18%, rgba(145, 193, 255, 0.3), transparent 38%),
        radial-gradient(circle at 82% 26%, rgba(76, 135, 205, 0.32), transparent 34%),
        radial-gradient(circle at 56% 88%, rgba(18, 45, 82, 0.34), transparent 32%),
        linear-gradient(130deg, rgba(10, 23, 42, 0.94), rgba(34, 76, 121, 0.9));
    background-size: 100% 100%, 175% 175%, 185% 185%, 175% 175%, 210% 210%;
    background-position: 0 0, 16% 18%, 84% 28%, 46% 92%, 0% 50%;
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -26px 48px rgba(8, 18, 34, 0.16);
    animation: heroGradientShift 12s linear infinite alternate;
}

@media (min-width: 961px) {
    .login-showcase {
        padding-top: clamp(72px, 6vw, 88px);
    }

    .login-shell-centered .login-showcase {
        padding-top: clamp(20px, 2.2vw, 26px);
    }
}

.login-showcase::before,
.login-showcase::after {
    content: "";
    position: absolute;
    inset: auto;
    pointer-events: none;
    border-radius: 50%;
    z-index: 0;
    filter: blur(4px);
}

.login-showcase::before {
    width: clamp(240px, 26vw, 320px);
    height: clamp(240px, 26vw, 320px);
    top: -10%;
    right: -12%;
    background: radial-gradient(circle, rgba(124, 165, 218, 0.22) 0%, rgba(69, 104, 151, 0.16) 34%, rgba(69, 104, 151, 0) 74%);
    animation: heroOrbDriftOne 14s ease-in-out infinite;
}

.login-showcase::after {
    width: clamp(260px, 29vw, 340px);
    height: clamp(260px, 29vw, 340px);
    left: -14%;
    bottom: -18%;
    background: radial-gradient(circle, rgba(102, 135, 185, 0.2) 0%, rgba(38, 65, 102, 0.16) 44%, rgba(38, 65, 102, 0) 78%);
    animation: heroOrbDriftTwo 16s ease-in-out infinite;
}

.login-showcase > * {
    position: relative;
    z-index: 1;
}

.showcase-badge {
    width: fit-content;
    max-width: 100%;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fde68a;
}

.showcase-title {
    margin: clamp(10px, 1.2vw, 14px) 0 12px;
    max-width: 12ch;
    font-size: clamp(1.8rem, 3.2vw, 2.9rem);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.06em;
    text-wrap: balance;
}

.showcase-text {
    max-width: 42ch;
    margin: 0;
    font-size: clamp(0.88rem, 0.9vw, 0.96rem);
    line-height: 1.6;
    color: rgba(248, 250, 252, 0.8);
}

.showcase-highlights {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
}

.showcase-highlights::before {
    content: "";
    position: absolute;
    inset: auto 10% -18% -8%;
    height: 54%;
    border-radius: 999px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    opacity: 0.55;
    pointer-events: none;
    filter: blur(14px);
    animation: heroSheen 12s ease-in-out infinite;
}

.highlight-card {
    position: relative;
    min-height: 86px;
    padding: 13px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 24px rgba(10, 18, 32, 0.14);
    backdrop-filter: blur(14px);
}

.highlight-value {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff7d6;
}

.highlight-label {
    display: block;
    margin-top: 3px;
    font-size: 0.7rem;
    line-height: 1.35;
    color: rgba(248, 250, 252, 0.72);
}

.login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    min-height: 0;
    padding: clamp(22px, 2.4vw, 28px);
    border-radius: calc(var(--radius) - 10px);
    background:
        radial-gradient(circle at top right, rgba(142, 190, 255, 0.18) 0%, rgba(142, 190, 255, 0) 34%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.97) 0%, rgba(247, 250, 255, 0.96) 48%, rgba(240, 246, 255, 0.92) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        inset 0 -18px 32px rgba(91, 137, 196, 0.06),
        0 12px 28px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.login-panel::before,
.login-panel::after {
    content: "";
    position: absolute;
    inset: auto;
    pointer-events: none;
    border-radius: 999px;
}

.login-panel::before {
    width: 220px;
    height: 220px;
    top: -92px;
    right: -68px;
    background: radial-gradient(circle, rgba(112, 166, 241, 0.22) 0%, rgba(112, 166, 241, 0) 72%);
}

.login-panel::after {
    width: 180px;
    height: 180px;
    right: 14%;
    bottom: -92px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 76%);
}

.forgot-password-card {
    width: min(100%, 480px);
    padding: clamp(28px, 3vw, 34px);
}

.auth-page-shell .app-grid {
    width: 100%;
}

.auth-branding {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.auth-branding-compact {
    margin-bottom: 10px;
}

.auth-brand-mark {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 247, 221, 1) 0%, rgba(255, 255, 255, 0.96) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.86),
        0 14px 28px rgba(17, 24, 39, 0.08);
}

.auth-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.auth-brand-copy {
    display: flex;
    flex: 1 1 200px;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

.auth-brand-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    min-width: 0;
}

.auth-brand-name {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1f4e82;
    white-space: nowrap;
}

.auth-brand-subtitle {
    margin: 0;
    min-width: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #5f6f84;
}

.auth-kicker {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--accent-dark) 56%, #715a35 44%);
}

.login-title {
    margin: 0;
    min-width: 0;
    font-size: clamp(1.7rem, 2vw, 2.05rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #111827;
    text-wrap: balance;
}

.auth-helper-text {
    position: relative;
    z-index: 1;
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.login-helper-text {
    margin-bottom: 20px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-form,
.login-form-elevated {
    gap: 14px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.password-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-soft);
}

.login-form input[type="text"],
.login-form input[type="password"],
.login-form input[type="email"],
.login-form input:not([type]) {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-soft);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.96));
    font-size: 1rem;
    color: var(--text-main);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.login-form input::placeholder {
    color: #94a3b8;
}

.login-form input:hover {
    border-color: rgba(243, 193, 75, 0.32);
    background: rgba(255, 255, 255, 1);
}

.login-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 5px rgba(243, 193, 75, 0.18);
    background: var(--surface-strong);
    transform: translateY(-1px);
}

.btn-primary {
    width: 100%;
    margin-top: 6px;
    min-height: 46px;
    padding: 12px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.01em;
    color: #2b2418;
    background: linear-gradient(135deg, #f2b93f 0%, #ffd773 52%, #ffe6a5 100%);
    box-shadow: 0 16px 32px rgba(243, 193, 75, 0.24);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(243, 193, 75, 0.34);
    filter: saturate(1.04);
}

.btn-primary:focus-visible,
.forgot-password:focus-visible,
.secondary-link:focus-visible,
.login-topbar:focus-visible {
    outline: 3px solid rgba(243, 193, 75, 0.45);
    outline-offset: 3px;
}

.forgot-password,
.secondary-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-top: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    background: none;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.25s ease, transform 0.25s ease;
}

.inline-link {
    margin-top: 0;
    white-space: nowrap;
    font-size: 1rem;
}

.forgot-password:hover,
.secondary-link:hover {
    color: var(--accent-dark);
    transform: translateY(-1px);
}

.back-link {
    position: relative;
    z-index: 1;
    margin-top: 18px;
}

.message-banner,
.error-message,
.field-validation-error,
.validation-summary-errors ul {
    margin: 0;
}

.message-banner,
.error-message,
.validation-summary-errors {
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 0.9rem;
    line-height: 1.5;
    border: 1px solid transparent;
}

.error-message,
.message-banner-error,
.validation-summary-errors {
    background: var(--error-bg);
    color: var(--error-text);
    border-color: rgba(157, 47, 42, 0.15);
}

.message-banner-success {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: rgba(33, 96, 58, 0.15);
}

.validation-summary-valid {
    display: none;
}

.validation-summary-errors ul {
    padding-left: 1rem;
}

.field-validation-error {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--error-text);
}

.login-topbar {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px 8px 8px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 232, 0.8)),
        rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px);
    box-shadow:
        0 18px 40px rgba(20, 33, 61, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease;
}

.login-topbar:hover {
    transform: translateY(-2px);
    box-shadow:
        0 22px 44px rgba(20, 33, 61, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(243, 193, 75, 0.26);
}

.login-logo-shell {
    position: relative;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 248, 227, 1), rgba(255, 255, 255, 0.9));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        0 10px 20px rgba(243, 193, 75, 0.16);
}

.login-logo-shell::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 18px;
    background: radial-gradient(circle, rgba(243, 193, 75, 0.18), rgba(243, 193, 75, 0));
    z-index: -1;
}

.login-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.login-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.login-brand {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.01em;
}

.login-brand-tagline {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(51, 65, 85, 0.64);
}

.login-footer {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    font-size: 10px;
    color: #94a3b8;
    text-align: center;
}

.login-footer-left {
    text-align: left;
}

@media (max-width: 1180px) {
    .login-shell {
        width: min(100%, 880px);
        grid-template-columns: minmax(0, 1fr) minmax(290px, 330px);
    }

    .showcase-title {
        max-width: 10.5ch;
        font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    }
}

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

    .login-wrapper {
        min-height: auto;
        padding-top: 84px;
        padding-bottom: 24px;
        align-items: stretch;
    }

    .login-shell,
    .login-shell-centered {
        min-height: 0;
        max-height: none;
        grid-template-columns: 1fr;
    }

    .login-showcase,
    .login-shell-centered .login-showcase {
        min-height: 0;
    }

    .showcase-title,
    .login-shell-centered .showcase-title {
        max-width: none;
    }

    .login-shell-centered {
        width: min(100%, 760px);
        justify-items: stretch;
        padding: 18px;
        gap: 18px;
        grid-template-columns: 1fr;
    }

    .login-shell-centered .login-showcase {
        min-height: 0;
        padding: 28px 24px;
    }

    .login-shell-centered .login-panel,
    .login-shell-centered .login-showcase {
        width: 100%;
    }

    .login-shell-centered .login-panel {
        margin: 0;
        width: auto;
    }

    .login-shell-centered .showcase-highlights {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .login-wrapper {
        padding: 76px 16px 24px;
    }

    .login-container,
    .forgot-password-card {
        width: 100%;
        padding: 18px;
    }

    .login-shell,
    .login-shell-centered {
        gap: 16px;
        padding: 14px;
    }

    .login-panel,
    .login-showcase,
    .login-shell-centered .login-panel,
    .login-shell-centered .login-showcase {
        padding: 24px 20px;
    }

    .showcase-highlights,
    .login-shell-centered .showcase-highlights {
        grid-template-columns: 1fr;
    }

    .auth-branding {
        gap: 14px;
    }

    .auth-brand-heading {
        gap: 6px 12px;
    }

    .auth-brand-name {
        font-size: 0.82rem;
    }

    .auth-brand-subtitle {
        font-size: 0.9rem;
    }

    .auth-brand-mark {
        width: 56px;
        height: 56px;
        border-radius: 18px;
    }

    .auth-logo {
        width: 34px;
        height: 34px;
    }

    .password-label-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-topbar {
        top: 12px;
        left: 14px;
        right: 14px;
        justify-content: center;
        padding-right: 12px;
    }
}

@media (max-height: 840px) and (min-width: 961px) {
    .login-wrapper {
        padding-top: 82px;
        padding-bottom: 16px;
    }

    .login-shell {
        min-height: min(620px, calc(100vh - 98px));
        max-height: calc(100vh - 98px);
    }

    .login-showcase {
        padding-top: 76px;
    }

    .showcase-highlights {
        margin-top: 16px;
    }

    .highlight-card {
        min-height: 78px;
        padding: 12px;
    }
}

@media (max-height: 760px) and (min-width: 961px) {
    .login-shell {
        grid-template-columns: minmax(0, 0.96fr) minmax(300px, 340px);
        min-height: min(560px, calc(100vh - 92px));
        max-height: calc(100vh - 92px);
    }

    .login-showcase {
        padding: 72px 22px 22px;
    }

    .showcase-title {
        font-size: clamp(1.7rem, 3vw, 2.55rem);
    }

    .showcase-text {
        font-size: 0.88rem;
    }

    .showcase-highlights {
        gap: 8px;
    }

    .highlight-card:last-child {
        display: none;
    }

    .login-panel {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
