:root {
    --brand: #0d9488;
    --brand-700: #0f766e;
    --accent: #cbd5e1;
    --ink: #0f172a;
    --muted: #64748b;
    --surface: rgba(255, 255, 255, 0.96);
    --line: rgba(148, 163, 184, 0.22);
}

* {
    box-sizing: border-box;
    margin: 0;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--ink);
    background: #f3f6fb;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
}

.session {
    width: min(960px, 100%);
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(300px, 1fr);
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(20px);
    animation: float-in 0.7s ease both;
}

.left {
    position: relative;
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    background: #1c1917;
    color: #fff;
}

.left::before,
.left::after {
    content: none;
}

.brand-row,
.insight-card {
    position: relative;
    z-index: 1;
}

.brand-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
}

.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    padding: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.eyebrow::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #93c5fd;
    box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.16);
}

.left h1,
.log-in h2 {
    font-family: 'Sora', sans-serif;
    letter-spacing: -0.03em;
}

.left h1 {
    font-size: clamp(1.65rem, 2.5vw, 2.25rem);
    line-height: 1.1;
    max-width: 10ch;
}

.lead-copy {
    position: relative;
    z-index: 1;
    margin-top: 0;
    max-width: 26rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    line-height: 1.55;
}

.highlights {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
}

.highlights span {
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #eff6ff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.insight-card {
    margin-top: 0;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.insight-label {
    margin-bottom: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #bfdbfe;
}

.insight-card strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.45;
}

.insight-card p:last-child {
    margin-top: 6px;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.5;
}

.log-in {
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.97);
}

.form-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(13, 148, 136, 0.08);
    color: var(--brand-700);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--brand);
}

.log-in h2 {
    font-size: clamp(1.45rem, 2vw, 1.85rem);
    line-height: 1.12;
}

.form-copy {
    max-width: 28rem;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.field-group label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
}

.required-label {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.required-indicator {
    color: #dc2626;
    font-weight: 800;
    line-height: 1;
}

input {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 500;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

input::placeholder {
    color: #94a3b8;
}

input:focus {
    outline: none;
    border-color: rgba(13, 148, 136, 0.42);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
    transform: translateY(-1px);
}

input[type="checkbox"] {
    width: 18px;
    min-height: 18px;
    height: 18px;
    padding: 0;
    border-radius: 5px;
    box-shadow: none;
    accent-color: var(--brand);
    transform: none;
}

input[type="checkbox"]:focus {
    transform: none;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: -2px;
}

.remember-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 700;
}

.auth-link {
    color: var(--brand-700);
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.status-message {
    padding: 12px 14px;
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 14px;
    background: #f0fdf4;
    color: #166534;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.55;
}

.auth-secondary-action {
    margin-top: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--brand-700);
    font-weight: 800;
    text-decoration: none;
}

.auth-secondary-action[type="submit"] {
    width: auto;
    border: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    padding: 0;
}

.auth-secondary-action[type="submit"]:hover {
    background: transparent;
    box-shadow: none;
    transform: none;
}

.auth-secondary-action:hover {
    text-decoration: underline;
}

button.login-button {
    appearance: none;
    width: 100%;
    margin-top: 4px;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    font-size: 0.94rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    box-shadow: 0 10px 22px rgba(13, 148, 136, 0.22);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

button.login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(13, 148, 136, 0.2);
    background: var(--brand-700);
}

button.login-button:active {
    transform: scale(0.99);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 4px;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.microsoft-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    margin-top: 0;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.microsoft-login-button svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.microsoft-login-button:hover {
    transform: translateY(-1px);
    border-color: rgba(13, 148, 136, 0.28);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
    color: var(--ink);
    text-decoration: none;
}

.form-footnote {
    margin-top: 2px;
    color: #94a3b8;
    font-size: 0.8rem;
    line-height: 1.4;
}

.error-message {
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 700;
}

@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }

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

@media (max-width: 980px) {
    .session {
        grid-template-columns: 1fr;
    }

    .left {
        padding: 22px 20px;
    }

    .log-in {
        padding: 24px 22px;
    }
}

@media (max-width: 640px) {
    .login-shell {
        padding: 12px;
    }

    .session {
        border-radius: 20px;
    }

    .left,
    .log-in {
        padding: 20px 18px;
    }

    .brand-row {
        grid-template-columns: 1fr;
    }

    .brand-logo {
        width: 56px;
        height: 56px;
    }
}
