/* ═══════════════════════════════════════════════════════════════════
   Login — premium split-screen experience
   ═══════════════════════════════════════════════════════════════════ */
:root {
    --login-primary: #6366f1;
    --login-primary-deep: #4f46e5;
    --login-violet: #8b5cf6;
    --login-cyan: #22d3ee;
    --login-rose: #f472b6;
    --login-text: #0f172a;
    --login-muted: #64748b;
    --login-border: rgba(148, 163, 184, 0.28);
    --login-font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    --login-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
    overflow-x: hidden;
    font-family: var(--login-font);
}

/* ── Page shell ──────────────────────────────────────────────────── */
.login-page {
    position: relative;
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: #0b0f1a;
    isolation: isolate;
}

/* ── Ambient orbs (full page) ────────────────────────────────────── */
.login-ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.login-ambient__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: loginOrbDrift 20s var(--login-ease) infinite alternate;
}

.login-ambient__orb--1 {
    width: 420px;
    height: 420px;
    background: #6366f1;
    top: -10%;
    right: 20%;
}

.login-ambient__orb--2 {
    width: 320px;
    height: 320px;
    background: #22d3ee;
    bottom: 5%;
    right: -5%;
    animation-delay: -7s;
}

.login-ambient__orb--3 {
    width: 260px;
    height: 260px;
    background: #a78bfa;
    top: 40%;
    left: 45%;
    animation-delay: -14s;
    opacity: 0.2;
}

/* ── Hero (left) ─────────────────────────────────────────────────── */
.login-hero {
    position: relative;
    z-index: 1;
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    min-height: 340px;
}

.login-hero__inner {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
    min-height: 100vh;
    padding-top: 0;
}

.login-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: loginKenBurns 22s ease-in-out infinite alternate;
}

.login-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(8, 12, 24, 0.97) 0%,
            rgba(11, 15, 26, 0.88) 30%,
            rgba(79, 70, 229, 0.5) 65%,
            rgba(6, 182, 212, 0.38) 100%);
    z-index: 1;
}

/* Hex grid overlay */
.login-hero__hex {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%2367e8f9' fill-opacity='1'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: loginHexPulse 8s ease-in-out infinite alternate;
    pointer-events: none;
}

.login-hero__grain {
    position: absolute;
    inset: 0;
    z-index: 3;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.login-hero__shapes {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.login-hero__shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    animation: loginFloat 14s ease-in-out infinite;
}

.login-hero__shape--1 {
    width: 300px;
    height: 300px;
    background: rgba(129, 140, 248, 0.55);
    top: 8%;
    right: 6%;
}

.login-hero__shape--2 {
    width: 220px;
    height: 220px;
    background: rgba(34, 211, 238, 0.45);
    bottom: 22%;
    left: 4%;
    animation-delay: -5s;
}

.login-hero__shape--3 {
    width: 160px;
    height: 160px;
    background: rgba(167, 139, 250, 0.5);
    top: 42%;
    left: 38%;
    animation-delay: -10s;
}

/* ── Futuristic FX ───────────────────────────────────────────────── */
.login-hero__fx {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
}

.login-hero__scanline {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(34, 211, 238, 0.15) 20%,
        rgba(103, 232, 249, 0.7) 50%,
        rgba(34, 211, 238, 0.15) 80%,
        transparent);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.5);
    animation: loginScanline 6s linear infinite;
    opacity: 0.6;
}

.login-hero__corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: rgba(103, 232, 249, 0.55);
    border-style: solid;
    animation: loginCornerPulse 3s ease-in-out infinite;
}

.login-hero__corner--tl {
    top: 1.75rem;
    left: 1.75rem;
    border-width: 2px 0 0 2px;
    animation-delay: 0s;
}

.login-hero__corner--tr {
    top: 1.75rem;
    right: 1.75rem;
    border-width: 2px 2px 0 0;
    animation-delay: 0.5s;
}

.login-hero__corner--bl {
    bottom: 1.75rem;
    left: 1.75rem;
    border-width: 0 0 2px 2px;
    animation-delay: 1s;
}

.login-hero__corner--br {
    bottom: 1.75rem;
    right: 1.75rem;
    border-width: 0 2px 2px 0;
    animation-delay: 1.5s;
}

.login-hero__particles span {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(103, 232, 249, 0.8);
    box-shadow: 0 0 6px rgba(34, 211, 238, 0.6);
    animation: loginParticleRise 8s linear infinite;
    opacity: 0;
}

.login-hero__particles span:nth-child(1)  { left: 8%;  bottom: 10%; animation-delay: 0s;   animation-duration: 7s; }
.login-hero__particles span:nth-child(2)  { left: 18%; bottom: 5%;  animation-delay: 1.2s; animation-duration: 9s; }
.login-hero__particles span:nth-child(3)  { left: 28%; bottom: 15%; animation-delay: 2.4s; animation-duration: 8s; }
.login-hero__particles span:nth-child(4)  { left: 42%; bottom: 8%;  animation-delay: 0.8s; animation-duration: 10s; }
.login-hero__particles span:nth-child(5)  { left: 55%; bottom: 12%; animation-delay: 3s;   animation-duration: 7.5s; }
.login-hero__particles span:nth-child(6)  { left: 65%; bottom: 6%;  animation-delay: 1.8s; animation-duration: 9.5s; }
.login-hero__particles span:nth-child(7)  { left: 75%; bottom: 18%; animation-delay: 4s;   animation-duration: 8.5s; }
.login-hero__particles span:nth-child(8)  { left: 85%; bottom: 10%; animation-delay: 2s;   animation-duration: 11s; }
.login-hero__particles span:nth-child(9)  { left: 92%; bottom: 20%; animation-delay: 5s;   animation-duration: 7s; }
.login-hero__particles span:nth-child(10) { left: 35%; bottom: 25%; animation-delay: 3.5s; animation-duration: 9s; }

.login-hero__datastream {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(103, 232, 249, 0.55);
    white-space: nowrap;
    animation: loginDataFlicker 4s ease-in-out infinite;
}

.login-hero__datastream-sep {
    color: rgba(139, 92, 246, 0.5);
    animation: loginBlink 2s step-end infinite;
}

.login-hero__content {
    position: relative;
    z-index: 1;
    padding: 3.25rem 3.75rem 2rem;
    max-width: 580px;
    color: #fff;
}

.login-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1rem 0.45rem 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e0e7ff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    animation: loginFadeDown 0.7s var(--login-ease) both;
}

.login-hero__badge-cursor {
    display: inline-block;
    width: 2px;
    height: 0.75rem;
    margin-left: 2px;
    background: #67e8f9;
    vertical-align: middle;
    animation: loginBlink 1s step-end infinite;
}

.login-hero__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
    animation: loginPulse 2s ease infinite;
}

.login-hero__title {
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1.1rem;
    letter-spacing: -0.03em;
    animation: loginFadeDown 0.7s var(--login-ease) 0.08s both;
}

.login-hero__title-main {
    display: inline-block;
    color: #ffffff;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.5),
        0 4px 20px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(0, 0, 0, 0.25);
    -webkit-text-stroke: 0.3px rgba(255, 255, 255, 0.15);
}

.login-hero__title-gradient {
    display: inline-block;
    color: #e0f2fe;
    background: linear-gradient(120deg, #a5f3fc 0%, #c4b5fd 50%, #f0abfc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
    animation: loginGradientShift 6s ease infinite, loginTextGlow 4s ease-in-out infinite alternate;
}

.login-hero__subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
    margin: 0 0 2.25rem;
    font-weight: 500;
    animation: loginFadeDown 0.7s var(--login-ease) 0.16s both;
}

.login-hero__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.login-hero__feature {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    padding: 0.65rem 0.85rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(103, 232, 249, 0.15);
    backdrop-filter: blur(8px);
    overflow: hidden;
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    animation: loginFadeDown 0.7s var(--login-ease) calc(0.24s + var(--i) * 0.07s) both;
}

.login-hero__feature-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(103, 232, 249, 0.12), transparent);
    animation: loginFeatureSweep 4s ease-in-out infinite;
    animation-delay: calc(var(--i) * 1.2s);
    pointer-events: none;
}

.login-hero__feature:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(103, 232, 249, 0.35);
    transform: translateX(6px);
}

.login-hero__feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(34, 211, 238, 0.35));
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    animation: loginIconFloat 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.4s);
}

.login-hero__stats {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding: 0 3.75rem 3.5rem;
    animation: loginFadeUp 0.7s var(--login-ease) 0.5s both;
}

.login-hero__stat {
    position: relative;
    flex: 1;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(103, 232, 249, 0.2);
    backdrop-filter: blur(10px);
    text-align: center;
    overflow: hidden;
}

.login-hero__stat-ring {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(103, 232, 249, 0.4), transparent, rgba(139, 92, 246, 0.4)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: loginRingSpin 6s linear infinite;
    opacity: 0.7;
    pointer-events: none;
}

.login-hero__stat-num {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.15rem;
    color: rgba(255, 255, 255, 0.92);
    animation: loginStatPulse 3s ease-in-out infinite;
}

.login-hero__stat span {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.6);
}

/* ── Panel (right) ───────────────────────────────────────────────── */
.login-panel {
    position: relative;
    z-index: 1;
    flex: 0 0 min(500px, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2.75rem;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99, 102, 241, 0.14) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(34, 211, 238, 0.1) 0%, transparent 55%),
        linear-gradient(175deg, #f8fafc 0%, #eef2ff 45%, #f1f5f9 100%);
    overflow: hidden;
}

.login-panel__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    pointer-events: none;
}

/* ── Glass card shell ────────────────────────────────────────────── */
.login-card-shell {
    position: relative;
    width: 100%;
    max-width: 420px;
    animation: loginFadeUp 0.8s var(--login-ease) 0.2s both;
}

.login-card-shell__glow {
    position: absolute;
    inset: -2px;
    border-radius: 1.65rem;
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.5),
        rgba(34, 211, 238, 0.35),
        rgba(139, 92, 246, 0.4));
    filter: blur(1px);
    opacity: 0.65;
    z-index: 0;
    animation: loginGlowPulse 4s ease-in-out infinite alternate;
}

.login-card {
    position: relative;
    z-index: 1;
    padding: 2.25rem 2.35rem 2rem;
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 24px 48px -12px rgba(79, 70, 229, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.login-card__brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.85rem;
    text-decoration: none;
    color: inherit;
}

.login-card__logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: linear-gradient(145deg, #fff, #f1f5f9);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.login-card__logo-wrap img {
    height: 2rem;
    width: auto;
}

.login-card__brand-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--login-text);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.login-card__welcome {
    margin-bottom: 1.65rem;
}

.login-card__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--login-primary);
    letter-spacing: 0.01em;
}

.login-card__welcome h1 {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--login-text);
    margin: 0 0 0.35rem;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.login-card__welcome p:last-child {
    margin: 0;
    color: var(--login-muted);
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.5;
}

/* ── Form ────────────────────────────────────────────────────────── */
.login-form__field {
    margin-bottom: 1.1rem;
    animation: loginFadeUp 0.6s var(--login-ease) calc(0.35s + var(--i) * 0.06s) both;
}

.login-form .form-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 2;
    transition: color 0.25s ease, transform 0.25s ease;
}

.login-input-wrap .form-control {
    padding: 0.78rem 1rem 0.78rem 2.75rem;
    border: 1.5px solid var(--login-border);
    border-radius: 0.85rem;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--login-font);
    background: rgba(255, 255, 255, 0.9);
    color: var(--login-text);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.login-input-wrap .form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.login-input-wrap .form-control:focus {
    border-color: var(--login-primary);
    background: #fff;
    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.12),
        0 4px 12px rgba(99, 102, 241, 0.08);
    outline: none;
}

.login-input-wrap:focus-within .input-icon {
    color: var(--login-primary);
    transform: translateY(-50%) scale(1.08);
}

.login-input-wrap--password .form-control {
    padding-right: 2.85rem;
}

.login-toggle-pw {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #94a3b8;
    padding: 0.3rem;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
    border-radius: 0.4rem;
    transition: color 0.2s ease, background 0.2s ease;
}

.login-toggle-pw:hover {
    color: var(--login-primary);
    background: rgba(99, 102, 241, 0.08);
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0 !important;
}

.login-options .form-check-label {
    font-size: 0.87rem;
    font-weight: 500;
    color: var(--login-muted);
}

.login-options .form-check-input {
    border-color: #cbd5e1;
}

.login-options .form-check-input:checked {
    background-color: var(--login-primary);
    border-color: var(--login-primary);
}

.login-forgot {
    font-size: 0.87rem;
    font-weight: 700;
    color: var(--login-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-forgot:hover {
    color: var(--login-primary-deep);
}

/* ── Submit button with shimmer ──────────────────────────────────── */
.btn-login-submit {
    position: relative;
    width: 100%;
    padding: 0;
    border: none;
    border-radius: 0.9rem;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 40%, #7c3aed 70%, #0891b2 100%);
    background-size: 200% auto;
    box-shadow:
        0 12px 28px -6px rgba(79, 70, 229, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.25s var(--login-ease), box-shadow 0.25s ease, background-position 0.4s ease;
}

.btn-login-submit__text {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--login-font);
    color: #fff;
    letter-spacing: 0.02em;
}

.btn-login-submit__shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-20deg);
    animation: loginShimmer 3s ease-in-out infinite;
    z-index: 1;
}

.btn-login-submit:hover {
    transform: translateY(-3px);
    background-position: right center;
    box-shadow:
        0 18px 36px -8px rgba(79, 70, 229, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-login-submit:active {
    transform: translateY(-1px);
}

/* ── Divider & Microsoft SSO ─────────────────────────────────────── */
.login-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.35rem 0;
    color: var(--login-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--login-border), transparent);
}

.btn-ms-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.78rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--login-font);
    color: #1e293b;
    background: rgba(255, 255, 255, 0.85);
    border: 1.5px solid var(--login-border);
    border-radius: 0.85rem;
    text-decoration: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--login-ease), background 0.25s ease;
}

.btn-ms-login:hover {
    background: #fff;
    border-color: rgba(0, 120, 212, 0.35);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
    color: #0f172a;
}

.btn-ms-login__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.45rem;
    background: rgba(0, 120, 212, 0.1);
    font-size: 1rem;
    color: #0078d4;
}

/* ── Alert & footer ──────────────────────────────────────────────── */
.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    border-radius: 0.85rem;
    padding: 0.9rem 1rem;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #fef2f2, #fff1f2);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.25);
    animation: loginShake 0.5s ease;
}

.login-alert i {
    font-size: 1.15rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.login-footer-note {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
    border-top: 1px solid var(--login-border);
}

/* ── Animations ──────────────────────────────────────────────────── */
@keyframes loginFadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loginFadeDown {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loginScanline {
    0% { top: -2%; opacity: 0; }
    5% { opacity: 0.6; }
    95% { opacity: 0.6; }
    100% { top: 102%; opacity: 0; }
}

@keyframes loginCornerPulse {
    0%, 100% { opacity: 0.4; box-shadow: none; }
    50% { opacity: 1; box-shadow: 0 0 8px rgba(103, 232, 249, 0.4); }
}

@keyframes loginParticleRise {
    0% { transform: translateY(0) scale(0); opacity: 0; }
    10% { opacity: 0.8; transform: translateY(-20px) scale(1); }
    90% { opacity: 0.4; }
    100% { transform: translateY(-120vh) scale(0.5); opacity: 0; }
}

@keyframes loginHexPulse {
    from { opacity: 0.04; }
    to { opacity: 0.1; }
}

@keyframes loginBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes loginDataFlicker {
    0%, 100% { opacity: 0.55; }
    92% { opacity: 0.55; }
    93% { opacity: 0.2; }
    94% { opacity: 0.7; }
    95% { opacity: 0.3; }
    96% { opacity: 0.55; }
}

@keyframes loginFeatureSweep {
    0% { left: -100%; }
    40%, 100% { left: 150%; }
}

@keyframes loginIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes loginTextGlow {
    from { filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 12px rgba(103, 232, 249, 0.25)); }
    to { filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 20px rgba(196, 181, 253, 0.5)); }
}

@keyframes loginStatPulse {
    0%, 100% { text-shadow: 0 0 8px rgba(103, 232, 249, 0.3); }
    50% { text-shadow: 0 0 18px rgba(103, 232, 249, 0.6); }
}

@keyframes loginRingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes loginKenBurns {
    from { transform: scale(1.05); }
    to { transform: scale(1.12); }
}

@keyframes loginFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(14px, -20px) scale(1.05); }
}

@keyframes loginOrbDrift {
    from { transform: translate(0, 0); }
    to { transform: translate(30px, -40px); }
}

@keyframes loginGradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

@keyframes loginPulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

@keyframes loginGlowPulse {
    from { opacity: 0.45; }
    to { opacity: 0.75; }
}

@keyframes loginShimmer {
    0% { left: -100%; }
    40%, 100% { left: 150%; }
}

@keyframes loginShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .login-page {
        flex-direction: column;
    }

    .login-hero {
        flex: none;
        min-height: 300px;
    }

    .login-hero__inner {
        min-height: auto;
    }

    .login-hero__content {
        padding: 2.25rem 1.75rem 1.5rem;
        text-align: center;
        max-width: 100%;
    }

    .login-hero__features,
    .login-hero__stats,
    .login-hero__datastream,
    .login-hero__corner,
    .login-hero__scanline,
    .login-hero__particles {
        display: none;
    }

    .login-hero__subtitle {
        margin-bottom: 0;
        font-size: 0.95rem;
    }

    .login-panel {
        flex: 1;
        padding: 1.75rem 1.25rem 2.5rem;
    }

    .login-card {
        padding: 1.85rem 1.65rem 1.65rem;
    }
}

@media (max-width: 575.98px) {
    .login-card__brand-text {
        font-size: 1.1rem;
    }

    .login-card__welcome h1 {
        font-size: 1.35rem;
    }

    .login-card-shell__glow {
        inset: -1px;
        border-radius: 1.35rem;
    }

    .login-card {
        border-radius: 1.3rem;
    }
}

/* Legacy — prevent layout wrapper conflicts */
.authentication-wrapper.authentication-cover {
    display: contents;
}

.content-wrapper {
    padding: 0 !important;
}
