:root {
    --ink: #172b27;
    --muted: #7d8783;
    --cream: #f4f3ef;
    --mint: #afd7ca;
}

* { box-sizing: border-box; }

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

body {
    font-family: "DM Sans", sans-serif;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { cursor: pointer; }

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 73%) minmax(350px, 27%);
    min-height: 100vh;
    min-height: 100dvh;
}

/* LEFT EDITORIAL PANEL */

.visual-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #101b19;
    color: #fff;
}

.visual-stage {
    flex: 1;
    min-height: 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #263b37;
}

.media-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 850ms ease;
}

.media-layer.active { opacity: 1; }

.media-layer video,
.media-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(10,19,18,.74) 0%,
            rgba(10,19,18,.35) 48%,
            rgba(10,19,18,.04) 100%),
        linear-gradient(0deg,
            rgba(10,19,18,.55) 0%,
            transparent 40%);
    pointer-events: none;
}

.visual-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 43px 48px;
}

.visual-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-symbol {
    width: 41px;
    height: 41px;
    display: grid;
    place-items: center;
    background: #f5f5f1;
    color: #194238;
    border-radius: 50%;
    font-family: "DM Serif Display", serif;
    font-size: 27px;
}

.brand-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 3px;
}

.brand-name small {
    display: block;
    margin-top: 6px;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: .3px;
    color: #ddd;
}

.network-label {
    margin-top: 12px;
    color: #e0e8e3;
    font-size: 10px;
    letter-spacing: .6px;
}

.visual-copy {
    position: absolute;
    z-index: 2;
    left: 48px;
    bottom: clamp(40px, 8vh, 95px);
    max-width: 720px;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 22px;
}

.visual-copy h1 {
    font-family: "DM Serif Display", Georgia, serif;
    font-weight: 400;
    font-size: clamp(58px, 6.4vw, 110px);
    line-height: .98;
    letter-spacing: -2.7px;
    margin: 0 0 35px;
}

.visual-copy h1 em {
    color: var(--mint);
    font-weight: 400;
}

.visual-copy > p {
    max-width: 460px;
    color: #e2e7e4;
    font-size: 13px;
    line-height: 1.9;
    margin: 0 0 36px;
}

.visual-meta {
    display: flex;
    gap: 50px;
}

.visual-meta div { display: flex; flex-direction: column; gap: 9px; }
.visual-meta small { color: #becbc4; font-size: 9px; letter-spacing: 1.8px; }
.visual-meta strong { font-size: 11px; font-weight: 500; }

.specialty-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 76px;
    background: #14201e;
}

.specialty-item {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 0 24px;
    border: 0;
    border-right: 1px solid rgba(255,255,255,.12);
    border-top: 2px solid transparent;
    background: transparent;
    color: #fff;
}

.specialty-item.active {
    background: rgba(255,255,255,.07);
    border-top-color: var(--mint);
}

.specialty-item span { color: #8b9a94; font-size: 10px; }
.specialty-item strong { font-size: 12px; font-weight: 600; }

/* RIGHT LOGIN PANEL */

.form-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--cream);
    padding: 55px clamp(28px, 3.6vw, 68px) 24px;
}

.form-top {
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
    color: #52635d;
}

.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 9px;
    background: #659b89;
    border-radius: 50%;
    vertical-align: middle;
}

.form-content {
    width: 100%;
    max-width: 350px;
    margin: auto;
    padding: 45px 0;
}

.mobile-logo { display: none; }

.form-content h2 {
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(53px, 4.3vw, 76px);
    line-height: .93;
    letter-spacing: -2px;
    font-weight: 400;
    margin: 0 0 28px;
}

.form-description {
    color: #7d8580;
    font-size: 12px;
    line-height: 1.9;
    margin: 0 0 52px;
}

.form-field { margin-bottom: 25px; }

.form-field label {
    display: block;
    margin-bottom: 11px;
    font-size: 11px;
    font-weight: 600;
}

.form-field input {
    width: 100%;
    height: 56px;
    border: 1px solid #d4d7d1;
    border-radius: 0;
    outline: none;
    background: #fafaf8;
    padding: 0 16px;
    color: var(--ink);
    font-size: 12px;
    box-shadow: none;
}

.form-field input:focus {
    border-color: #497769;
}

.form-field input::placeholder { color: #a0a7a1; }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 70px; }

.show-password {
    position: absolute;
    right: 12px;
    top: 0;
    height: 56px;
    padding: 0 5px;
    border: 0;
    background: transparent;
    color: #65776f;
    font-size: 11px;
}

.submit-btn {
    width: 100%;
    height: 64px;
    margin-top: 12px;
    padding: 0 11px 0 21px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #16372e;
    border: 0;
    border-radius: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    box-shadow: none;
}

.submit-btn:hover { background: #214b3e; }

.submit-arrow {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    background: rgba(255,255,255,.09);
    font-size: 23px;
    font-weight: 400;
}

.portal-note {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 49px;
    padding-top: 24px;
    border-top: 1px solid #d9ddd6;
}

.note-symbol {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    border: 1px solid #cbd2ca;
    border-radius: 50%;
    color: #55796b;
    font-size: 19px;
}

.portal-note strong { font-size: 10px; font-weight: 600; }
.portal-note p { font-size: 10px; color: #929a94; margin: 6px 0 0; }

.form-error {
    padding: 12px 14px;
    margin-bottom: 24px;
    background: #f9e9e7;
    color: #a43a35;
    font-size: 12px;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #969e98;
    font-size: 10px;
}

@media(max-width:1100px) {
    .auth-layout { grid-template-columns: minmax(0, 60%) minmax(340px, 40%); }
    .visual-copy h1 { font-size: clamp(52px, 6vw, 78px); }
}

@media(max-width:760px) {
    .auth-layout { display: block; }
    .visual-panel { display: none; }
    .form-panel { min-height: 100dvh; padding: 30px 27px 24px; }
    .form-top { text-align: right; }
    .form-content { max-width: 410px; padding: 55px 0; }
    .mobile-logo {
        display: block;
        font-weight: 700;
        font-size: 14px;
        letter-spacing: 3px;
        margin-bottom: 65px;
    }
    .form-content h2 { font-size: 65px; }
    .form-description { margin-bottom: 38px; }
}

@media(prefers-reduced-motion:reduce) {
    .media-layer { transition: none; }
}

/* LAMEDISTA — COMPACT TYPOGRAPHY */

.visual-header {
    padding: 30px 38px;
}

.brand-name {
    font-size: 13px;
    letter-spacing: 2px;
}

.brand-name small {
    font-size: 8px;
}

.visual-copy {
    left: 38px;
    bottom: clamp(30px, 6vh, 65px);
    max-width: 550px;
}

.eyebrow {
    font-size: 9px;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.visual-copy h1 {
    font-size: clamp(42px, 4.5vw, 72px);
    line-height: 1.02;
    letter-spacing: -1.8px;
    margin-bottom: 23px;
}

.visual-copy > p {
    font-size: 11px;
    line-height: 1.7;
    max-width: 370px;
    margin-bottom: 25px;
}

.visual-meta {
    gap: 35px;
}

.visual-meta small {
    font-size: 8px;
}

.visual-meta strong {
    font-size: 10px;
}

.specialty-nav {
    min-height: 60px;
}

.specialty-item {
    padding: 0 20px;
    gap: 12px;
}

.specialty-item strong {
    font-size: 10px;
}

/* LOGIN PANEL */

.form-panel {
    padding: 35px clamp(25px, 3vw, 48px) 22px;
}

.form-content {
    max-width: 320px;
}

.form-content h2 {
    font-size: clamp(43px, 3.3vw, 57px);
    line-height: .98;
    margin-bottom: 20px;
}

.form-description {
    font-size: 11px;
    line-height: 1.7;
    margin-bottom: 34px;
}

.form-field {
    margin-bottom: 19px;
}

.form-field label {
    font-size: 10px;
    margin-bottom: 8px;
}

.form-field input {
    height: 45px;
    font-size: 11px;
    padding: 0 12px;
}

.show-password {
    height: 45px;
    font-size: 10px;
}

.submit-btn {
    height: 49px;
    margin-top: 8px;
    font-size: 11px;
}

.submit-arrow {
    width: 34px;
    height: 34px;
    font-size: 18px;
}

.portal-note {
    margin-top: 32px;
    padding-top: 18px;
}

.portal-note strong {
    font-size: 9px;
}

.portal-note p {
    font-size: 9px;
}

@media (max-width: 760px) {
    .form-content h2 {
        font-size: 48px;
    }

    .form-content {
        max-width: 360px;
    }
}

