/* Login, Register and Onboarding (v2.1): brand panel on the left, the content on the right. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--kn-card); color: var(--kn-text); font-family: var(--kn-font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }

.au { display: grid; grid-template-columns: minmax(0, 1fr) minmax(440px, 1fr); min-height: 100vh; min-height: 100dvh; padding: 16px; gap: 16px; }

/* ================= Brand panel ================= */
.au-panel {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; justify-content: space-between;
    border-radius: 28px; padding: 40px;
    background: linear-gradient(160deg, #2BC8EE 0%, #5ad4f1 55%, #a9e9f8 100%);
    color: var(--kn-ink);
}
.au-panel::after {
    /* soft light behind the mascot */
    content: ""; position: absolute; z-index: -1; left: 50%; top: 44%;
    width: 78%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 68%);
}
.au-panel-brand { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; font-weight: 700; font-size: 16px; color: var(--kn-ink); text-decoration: none; }
.au-panel-brand img { width: 34px; height: 34px; }
.au-mascot { display: block; width: min(62%, 360px); height: auto; aspect-ratio: 1; margin: 0 auto; filter: drop-shadow(0 28px 36px rgba(20, 22, 74, .2)); }
.au-panel-copy { max-width: 460px; }
.au-panel-copy h2 { margin: 0; font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -.015em; color: var(--kn-ink); }
.au-panel-copy p { margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: rgba(20, 22, 74, .75); }

/* ================= Content side ================= */
.au-side { display: flex; flex-direction: column; padding: 8px 24px; }
.au-side-top { display: flex; align-items: center; justify-content: flex-end; min-height: 44px; }
.au-form { width: 100%; max-width: 400px; margin: auto; padding: 40px 0; }

.au-switch-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 40px; border-radius: 12px; background: var(--kn-raised); }
.au-switch-tabs a { height: 40px; display: grid; place-items: center; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--kn-muted); text-decoration: none; transition: color var(--kn-fast) var(--kn-ease); }
.au-switch-tabs a:hover { color: var(--kn-text); }
.au-switch-tabs a[aria-current="page"] { background: var(--kn-card); color: var(--kn-ink); box-shadow: var(--kn-shadow-sm), 0 0 0 1px var(--kn-line); }
.au-switch-tabs a:focus-visible { outline: none; box-shadow: var(--kn-focus); }

.au-form h1 { margin: 0; font-size: 34px; line-height: 1.12; font-weight: 700; color: var(--kn-ink); letter-spacing: -.015em; }
.au-lead { margin: 10px 0 32px; font-size: 16px; line-height: 1.55; color: var(--kn-text-2); }

.au-google {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; height: 56px; padding: 0 20px;
    border: 1px solid var(--kn-line-strong); border-radius: 14px; background: var(--kn-card);
    font: 600 16px/1 var(--kn-font); color: var(--kn-text); text-decoration: none;
    box-shadow: 0 1px 2px rgba(23, 24, 43, .06);
    transition: border-color var(--kn-fast) var(--kn-ease), box-shadow var(--kn-fast) var(--kn-ease);
}
.au-google:hover { border-color: var(--kn-accent); box-shadow: 0 0 0 4px rgba(43, 200, 238, .14); }
.au-google:focus-visible { outline: none; box-shadow: var(--kn-focus); }
.au-google svg { width: 20px; height: 20px; flex: none; }
.au-note { margin: 18px 0 0; font-size: 13px; line-height: 1.55; color: var(--kn-muted); text-align: center; }
.au-note a { color: var(--kn-text-2); }

.au-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 8px; font-size: 13px; color: var(--kn-muted); }
.au-foot nav { display: flex; gap: 16px; }
.au-foot a { text-decoration: none; }
.au-foot a:hover { color: var(--kn-text); }

/* Messages (e.g. "You have signed out") */
.au-messages { position: fixed; top: 16px; right: 16px; z-index: 50; width: min(380px, calc(100vw - 32px)); display: grid; gap: 8px; transition: opacity 220ms ease; }
.au-message { padding: 12px 16px; border-radius: 12px; background: var(--kn-card); box-shadow: var(--kn-shadow-float); font-size: 14px; font-weight: 500; color: var(--kn-text); border-left: 4px solid var(--kn-accent); }
.au-message.error { border-left-color: var(--kn-danger); }
.au-message.warning { border-left-color: var(--kn-marigold); }
.au-message.success { border-left-color: var(--kn-jade); }

/* ================= Phones ================= */
@media (max-width: 900px) {
    .au { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 12px; gap: 0; }
    .au-panel { flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 22px; }
    .au-panel::after { display: none; }
    .au-panel-brand { display: none; }
    .au-mascot { flex: none; width: 76px; margin: 0; filter: drop-shadow(0 8px 12px rgba(20, 22, 74, .18)); }
    .au-panel-copy h2 { font-size: 19px; }
    .au-panel-copy p { font-size: 13.5px; margin-top: 4px; }
    .au-side { flex: 1; padding: 8px 8px 4px; }
    .au-form { margin: 0 auto; padding: 28px 0 32px; }
    .au-form h1 { font-size: 28px; }
    .au-switch-tabs { margin-bottom: 28px; }
    .au-foot { margin-top: auto; flex-direction: column-reverse; align-items: flex-start; }
}
