/* Signed-out dashboard: edge-to-edge navy cover and cream writing page.
   Presentation only. Every existing auth data-hook, form and notice is retained. */
/* Auth notices occupy their own line rather than covering the submit button
   on short screens. Signed-in dashboard toasts keep their existing behavior. */
body:has(.gm-auth:not([hidden])) > .gm-status {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 14px 18px;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    text-align: left;
    line-height: 1.5;
}
.gm-auth {
    --gm-display: "Space Grotesk", "Hanken Grotesk", sans-serif;
    min-height: 100svh;
    padding: 0;
    background: #fbf6ea;
}
.gm-auth .gm-signin {
    position: relative;
    width: 100%;
    max-width: none;
    min-height: 100svh;
    margin: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border: 0;
    border-radius: 0;
    background: #fbf6ea;
    box-shadow: none;
    isolation: isolate;
}
.gm-auth .gm-signin-brand {
    display: flex;
    padding: 36px clamp(32px, 6vw, 112px) 36px;
    overflow: hidden;
    border-radius: 0;
    background: #13233f;
    color: #fbf6ea;
}
.gm-auth .gm-signin-pitch { margin: auto 0; max-width: 520px; padding: 44px 0; }
.gm-auth .gm-signin-pitch h1 { font-size: clamp(36px, 3.5vw, 56px); line-height: 1.08; font-weight: 700; letter-spacing: -.035em; color: #fbf6ea; }
.gm-signin-pitch h1 em { font-style: normal; color: #edcf83; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.gm-auth .gm-signin-lead { color: #d6deea; margin: 24px 0 30px; max-width: 40ch; }
.gm-auth .gm-signin-points { gap: 0; border-top: 1px solid #58667e; }
.gm-auth .gm-signin-point { padding: 17px 0; border-bottom: 1px solid #58667e; gap: 12px; }
.gm-auth .gm-signin-point-ic { width: 28px; height: 28px; border-radius: 0; background: transparent; color: #edcf83; }
.gm-auth .gm-signin-point-title { color: #fbf6ea; font-family: var(--gm-display); }
.gm-auth .gm-signin-point-body { color: #d6deea; }
.gm-auth .gm-signin-copyright { color: #bac8dc; font-size: 12px; }
.gm-auth .gm-signin-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 48px clamp(32px, 5vw, 96px);
    background: #fbf6ea;
    border-radius: 0;
    border-left: 0;
    box-shadow: none;
}
.gm-auth .gm-signin-panel::before {
    content: "";
    position: absolute;
    left: 24px; top: 0; bottom: 0; width: 1px;
    background: #ba795f;
    pointer-events: none;
}
.gm-auth .gm-signin-panel-logo { display: block; position: static; width: 100%; max-width: 480px; margin: 0 0 12px; }
.gm-auth .gm-signin-panel-logo img { width: 200px; height: 200px; object-fit: contain; mix-blend-mode: multiply; }
.gm-auth .gm-signin-topright { position: static; width: 100%; max-width: 480px; margin: 0 0 44px; white-space: normal; font-size: 14px; line-height: 1.6; text-align: right; color: #46566b; }
.gm-auth .gm-signin-card { width: 100%; max-width: 480px; }
.gm-auth .gm-signin-card h2 { font-size: clamp(27px, 2.6vw, 36px); line-height: 1.15; font-weight: 700; letter-spacing: -.025em; }
.gm-auth .gm-signin-card-sub { color: #46566b; margin-bottom: 26px; }
.gm-auth .gm-field-label { font-size: 14px; letter-spacing: 0; text-transform: none; color: #13233f; }
.gm-auth .gm-field-wrap :is(input, select) { border: 1.5px solid #13233f; border-radius: 6px; background: #fffdf8; min-height: 50px; box-shadow: 2px 3px 0 #e7dcc0; }
.gm-auth .gm-field-wrap :is(input, select):focus { outline: 2px solid #806020; outline-offset: 3px; box-shadow: none; }
.gm-auth .gm-field-wrap input::placeholder { color: #686451; }
.gm-auth .gm-field-ic { stroke: #686451; }
.gm-auth .gm-signin-submit { border: 1.5px solid #13233f; border-radius: 6px; background: #edcf83; color: #13233f; box-shadow: 3px 4px 0 #13233f; }
.gm-auth .gm-signin-submit:not(:disabled):hover { background: #f1d999; transform: translateY(-1px); box-shadow: 3px 5px 0 #13233f; }
.gm-auth .gm-signin-submit:not(:disabled):active { transform: translate(2px, 2px); box-shadow: 1px 2px 0 #13233f; }
.gm-auth .gm-signin-submit:disabled { opacity: .65; box-shadow: none; cursor: not-allowed; }
.gm-auth .gm-social-btn { border: 1px solid #13233f; border-radius: 6px; background: #fffdf8; min-height: 48px; white-space: normal; }
.gm-auth .gm-social-btn:hover { background: #f1e6cb; }
.gm-auth .gm-signin-note { text-align: left; color: #686451; margin-top: 22px; }
.gm-auth .gm-link-btn, .gm-auth .gm-field-link { color: #806020; }
.gm-auth .gm-link-btn:hover, .gm-auth .gm-field-link:hover { color: #13233f; }
.gm-auth .gm-auth-switch { color: #46566b; }
@media (max-width: 860px) {
    .gm-auth { padding: 0; }
    .gm-auth .gm-signin { grid-template-columns: 1fr; min-height: 0; }
    .gm-auth .gm-signin-panel { order: -1; align-items: stretch; justify-content: flex-start; border-left: 0; border-radius: 0; padding: 20px clamp(24px, 6vw, 52px) 32px; box-shadow: none; }
    .gm-auth .gm-signin-card { max-width: none; }
    .gm-auth .gm-signin-panel::before { display: none; }
    .gm-auth .gm-signin-panel-logo { display: block; position: static; align-self: flex-start; margin: -6px 0 4px -12px; }
    .gm-auth .gm-signin-panel-logo img { width: 144px; height: 144px; object-fit: contain; mix-blend-mode: multiply; }
    .gm-auth .gm-signin-topright { align-self: flex-start; text-align: left; margin: 0 0 24px; }
    .gm-auth .gm-signin-brand { border-radius: 0; border-top: 1px solid #ba795f; padding: 36px clamp(24px, 6vw, 52px); }
    .gm-auth .gm-signin-pitch { padding: 0 0 30px; }
    .gm-auth .gm-signin-pitch h1 { font-size: 36px; }
    .gm-auth .gm-social-auth { grid-template-columns: 1fr; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .gm-auth :is(button, input, select) { transition: none; }
    .gm-auth .gm-signin-submit:not(:disabled):hover,
    .gm-auth .gm-signin-submit:not(:disabled):active { transform: none; }
}
