.auth-page {
    min-height: 100vh;
    display: flex;
    background: #ffffff;
    overflow-y: auto;
}

.auth-split-left {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: #EDEDED;
    box-sizing: border-box;
}

.auth-split-left-card {
    width: 100%;
    max-width: 749px;
    background: linear-gradient(165deg, #F1E9FF 0%, #E9E9E9 100%);
    border-radius: 24px;
    padding: 40px 36px;
    box-sizing: border-box;
}

.auth-split-left h2 {
    font-size: 27px;
    line-height: 1.28;
    font-weight: 800;
    margin: 0 0 12px;
    color: #111111;
}

.auth-split-left h2 .highlight {
    background: rgb(207, 177, 251);
    padding: 1px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.auth-split-left > p {
    font-size: 14.5px;
    color: rgba(17, 17, 17, 0.65);
    margin: 0;
    line-height: 1.5;
}

.auth-preview-frame {
    width: 100%;
    margin-top: 10px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

.auth-preview-chrome {
    display: flex;
    gap: 5px;
    padding: 9px 12px;
    background: #F5F5F5;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.auth-preview-chrome span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D4D4D4;
}

.auth-preview-scale {
    width: 1280px;
    transform-origin: top left;
    pointer-events: none;
    user-select: none;
}

/* Real dashboard CSS pins .app-shell/.sidebar to 100vh for the full-page app;
   inside this shrunk preview that would size against the visitor's own screen
   instead of the dashboard's actual content, so it's neutralized here. */
#authPreviewScale .app-shell { min-height: 0; }
#authPreviewScale .sidebar { height: auto; position: static; }

.auth-split-trust {
    margin-top: 26px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(17, 17, 17, 0.6);
}

.auth-split-right {
    flex: 1 1 50%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    box-sizing: border-box;
}

.auth-box {
    width: 380px;
    max-width: 100%;
    margin: auto;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.auth-logo span {
    font-size: 22px;
    font-weight: 600;
    color: rgba(17, 17, 17, 0.9);
}

.auth-box h1 {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 14px;
}

.auth-field {
    margin-bottom: 12px;
}

.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #111111;
}

.auth-field input {
    width: 100%;
    height: 38px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1.6px solid #D4D4D4;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.auth-password-wrap { position: relative; }
.auth-password-wrap input { padding-right: 40px; }
.auth-password-toggle {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 34px;
    height: 34px;
    border: none;
    background: none;
    cursor: pointer;
    color: rgba(17, 17, 17, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-password-toggle:hover { color: #111111; }

.auth-field input:focus {
    outline: none;
    border-color: #7C3AED;
}

.auth-checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.auth-checkbox-field input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #7C3AED;
    flex-shrink: 0;
}

.auth-checkbox-field label {
    font-size: 13px;
    color: rgba(17, 17, 17, 0.75);
    line-height: 1.4;
}

.auth-submit {
    width: 100%;
    height: 42px;
    border-radius: 10px;
    border: 1.6px solid #111111;
    background: rgb(207, 177, 251);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    margin-top: 2px;
}

.auth-submit:hover { background: rgb(190, 155, 245); }

.auth-error {
    background: #FEE2E2;
    color: #991B1B;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
}

/* Same shape as .auth-error, green — used for "link created" / "password changed". */
.auth-notice {
    background: rgb(207, 232, 218);
    color: rgb(31, 90, 60);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.auth-help {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(17, 17, 17, 0.6);
    margin: 0 0 16px;
}

.auth-forgot {
    display: block;
    margin: -4px 0 14px;
    font-size: 12.5px;
    font-weight: 700;
    text-align: right;
    color: #7C3AED;
}
.auth-forgot:hover { text-decoration: underline; }

.auth-footer {
    margin-top: 14px;
    font-size: 13px;
    text-align: center;
    color: rgba(17, 17, 17, 0.6);
}

.auth-footer a {
    color: #7C3AED;
    font-weight: 700;
}

.auth-legal {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(17, 17, 17, 0.4);
}
.auth-legal a {
    color: rgba(17, 17, 17, 0.55);
    text-decoration: none;
}
.auth-legal a:hover { color: #7C3AED; }

/* "or" divider + Google Sign-In button (GIS renders the button itself). */
.auth-or {
    display: flex;
    align-items: center;
    margin: 18px 0;
    color: rgba(17, 17, 17, .5);
    font-size: 13px;
}
.auth-or::before, .auth-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(17, 17, 17, .14);
}
.auth-or span { padding: 0 12px; }
.auth-google { display: flex; justify-content: center; margin-bottom: 6px; min-height: 40px; }

@media (max-width: 860px) {
    .auth-split-left { display: none; }
    .auth-split-right { padding: 16px; }
    /* iOS Safari auto-zooms the page when a focused input's font is under 16px -
       harmless on desktop, but on phone every tap into email/password/name yanked
       the whole page in. */
    .auth-field input { font-size: 16px; }
}
