:root {
    color-scheme: light;
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    color: #1e2952;
    background: #f6f4ef;
    --navy: #1e2952;
    --muted: #505971;
    --line: #d8d9dd;
    --orange: #f97316;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid #a6480d; outline-offset: 3px; }

.studio-login {
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.studio-intro {
    padding: clamp(1.5rem, 5vw, 5rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(2rem, 14vh, 12rem);
    color: #fff;
    background-color: #1e2952;
    background-image:
        linear-gradient(90deg, rgb(255 255 255 / 6%) 1px, transparent 1px),
        linear-gradient(rgb(255 255 255 / 6%) 1px, transparent 1px);
    background-size: 2rem 2rem;
}

.studio-brand { align-self: flex-start; }
.studio-brand img {
    display: block;
    width: 9.75rem;
    height: auto;
    padding: 0.5rem 0.75rem;
    background: #fff;
    border-radius: 0.35rem;
}

.studio-intro h1 {
    margin: 0;
    font-size: clamp(3rem, 7.8vw, 8rem);
    line-height: 0.95;
    letter-spacing: -0.075em;
    font-weight: 750;
}

.studio-intro h1 span { color: #ff9c57; }
.studio-intro p {
    max-width: 34ch;
    margin: 1.5rem 0 0;
    color: #e4e8f6;
    font-size: clamp(1rem, 2vw, 1.375rem);
    line-height: 1.55;
}

.studio-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.75rem;
    width: min(100%, 33rem);
    margin-inline: auto;
    padding: clamp(1.5rem, 5vw, 4rem);
}

.studio-form-panel h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin: 0;
    letter-spacing: -0.045em;
    line-height: 1.1;
}
.studio-form-panel p { color: var(--muted); margin: 0.65rem 0 0; }
.studio-form-panel form { display: grid; gap: 0.5rem; }
.studio-form-panel label { font-size: 0.875rem; font-weight: 700; }
.studio-form-panel input {
    min-height: 3.25rem;
    width: 100%;
    border: 1px solid #9b9fb1;
    border-radius: 0.35rem;
    padding: 0.75rem;
    background: #fff;
    color: var(--navy);
}
.studio-form-panel input[aria-invalid="true"] { border-color: #a1201a; }
.studio-form-panel .studio-error { color: #a1201a; min-height: 1.1rem; font-size: 0.85rem; margin: 0; }
.studio-form-panel button, .studio-session-bar button {
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 0.35rem;
    font-weight: 700;
}
.studio-form-panel button { min-height: 3.25rem; color: #151c34; background: var(--orange); }
.studio-form-panel button:hover { background: #fb923c; }
.studio-links { display: flex; gap: 0.75rem 1.35rem; flex-wrap: wrap; font-size: 0.875rem; font-weight: 650; }

.studio-workspace { height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.studio-session-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0.9rem;
    background: var(--navy);
    color: #fff;
    font-size: 0.8rem;
}
.studio-session-bar button { min-height: 2.25rem; padding: 0.25rem 0.8rem; color: #fff; background: transparent; border-color: #8c96b8; }
.studio-session-bar button:hover { background: #354370; }
.studio-workspace iframe { display: block; border: 0; width: 100%; height: 100%; }

@media (max-width: 46rem) {
    .studio-login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .studio-intro { gap: 1.75rem; }
    .studio-intro p { margin-top: 0.75rem; }
    .studio-form-panel { padding-block: 2rem; }
}
