/* gd#1924 — driver web theme = the Android app's (ui/theme/Color.kt, Type.kt).
 * LadyBlue #7651E3 primary, Golden #FFCA4E accent, Minsk #442F84 dark, Poppins.
 * Primary button like RegisterScreen: 56 px tall, 16 px radius, Golden with
 * LadyBlue text. No admin Bootstrap here. */
:root {
    --gd-lady-blue: #7651E3;
    --gd-golden: #FFCA4E;
    --gd-minsk: #442F84;
    --gd-primary-95: #F3ECFF;
    --gd-ink: #1C1B1F;
    --gd-muted: #605D62;
    --gd-border: #E5DEFF;
    --gd-error: #B3261E;
    --gd-radius: 16px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body.gd {
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--gd-ink);
    background: var(--gd-primary-95);
    min-height: 100vh;
    -webkit-text-size-adjust: 100%;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.gd-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 24px 16px 32px;
}

.gd-card {
    background: #FFFFFF;
    border-radius: var(--gd-radius);
    padding: 24px 20px;
}

.gd-center { text-align: center; }

.gd-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gd-minsk);
    margin: 0 0 8px;
}

.gd-muted { color: var(--gd-muted); font-size: .9375rem; line-height: 1.5; }

.gd-error-code {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gd-border);
    margin: 0 0 8px;
}

.gd-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: var(--gd-radius);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    margin-top: 24px;
}

.gd-btn-primary { background: var(--gd-golden); color: var(--gd-lady-blue); }
.gd-btn-primary:disabled { opacity: .5; cursor: default; }
.gd-btn-secondary { background: transparent; color: var(--gd-lady-blue); border: 1px solid var(--gd-lady-blue); }

a { color: var(--gd-lady-blue); }

/* Legal pages (/privacy/, /terms/): shared content written with Bootstrap class names. */
.gd-legal h1 { font-size: 1.5rem; font-weight: 600; color: var(--gd-minsk); margin: 0 0 8px; }
.gd-legal h2 { font-size: 1.125rem; font-weight: 600; color: var(--gd-minsk); margin: 24px 0 8px; }
.gd-legal h3 { font-size: 1rem; font-weight: 600; margin: 16px 0 8px; }
.gd-legal p, .gd-legal li { font-size: .9375rem; line-height: 1.6; }
.gd-legal .text-muted { color: var(--gd-muted); }
.gd-legal ul { padding-left: 20px; }

/* Registration screens (gd#1924 U6-U7): structure of the mockup, tokens of the app. */
.gd-brand { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-weight: 600; color: var(--gd-minsk); }
.gd-brand i { width: 28px; height: 28px; border-radius: 8px; background: var(--gd-lady-blue); display: inline-block; }
.gd-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.gd-row2 { display: flex; gap: 12px; }
.gd-row2 > .gd-field { flex: 1 1 0; min-width: 0; }
.gd-row2 > .gd-field-code { flex: 0 0 96px; }
.gd-field { display: flex; flex-direction: column; }
.gd-label { font-size: .8125rem; font-weight: 500; color: var(--gd-muted); margin: 0 0 4px; }
.gd-input {
    width: 100%;
    height: 52px;
    padding: 0 12px;
    border: 1px solid var(--gd-border);
    border-radius: 12px;
    background: #FFFFFF;
    font-family: inherit;
    font-size: 1rem;
    color: var(--gd-ink);
}
.gd-input:focus { outline: none; border-color: var(--gd-lady-blue); }
.gd-field-error { color: var(--gd-error); font-size: .8125rem; margin: 4px 0 0; min-height: 0; }
.gd-field-error:empty, .gd-field-help:empty { display: none; }
.gd-field-help { color: #2E7D32; font-size: .8125rem; margin: 4px 0 0; }
.gd-note { font-size: .8125rem; line-height: 1.5; color: var(--gd-muted); margin: 8px 0 0; }
.gd-note-box { background: var(--gd-primary-95); border-radius: 12px; padding: 12px 14px; font-size: .8125rem; line-height: 1.5; color: var(--gd-minsk); margin-top: 24px; }
.gd-alert { background: #FDECEA; color: var(--gd-error); border-radius: 12px; padding: 12px 14px; font-size: .875rem; margin: 16px 0 0; }
.gd-alert .gd-btn { margin-top: 12px; }
.gd-alert-title { margin: 0; font-weight: 600; }
.gd-notice { background: #E8F5E9; color: #2E7D32; border-radius: 12px; padding: 12px 14px; font-size: .875rem; margin: 16px 0 0; }
.gd-otp { display: flex; gap: 8px; justify-content: space-between; margin-top: 8px; }
.gd-otp input {
    width: 46px;
    height: 58px;
    text-align: center;
    font-family: inherit;
    font-size: 1.375rem;
    font-weight: 700;
    border: 1.5px solid var(--gd-border);
    border-radius: 10px;
    background: #FFFFFF;
    color: var(--gd-ink);
}
.gd-otp input:focus { outline: none; border-color: var(--gd-lady-blue); }
.gd-link-btn { background: none; border: 0; padding: 0; font-family: inherit; font-size: .875rem; font-weight: 600; color: var(--gd-lady-blue); text-decoration: underline; cursor: pointer; }
.gd-link-btn.gd-link-muted { font-size: .75rem; font-weight: 400; color: var(--gd-muted); }
.gd-link-btn:disabled { color: var(--gd-muted); text-decoration: none; cursor: default; }
.gd-actions-center { text-align: center; margin-top: 16px; }
.gd-terms-summary { margin-top: 16px; }
.gd-terms-summary p { margin: 0 0 10px; font-size: .78125rem; line-height: 1.65; color: var(--gd-muted); }
/* The contract itself, as big as the screen allows (the app gives it the whole screen). */
.gd-terms-frame { display: block; width: 100%; height: 62vh; min-height: 320px; background: #FFFFFF; border: 1.5px solid var(--gd-border); border-radius: 12px; margin-top: 10px; }
.gd-checks { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.gd-check { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; line-height: 1.45; color: var(--gd-ink); cursor: pointer; }
.gd-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--gd-lady-blue); }

/* Screen 6 «Autorizaciones» (gd#1924 U11): a record, not a form — no switches, no red button. */
.gd-auths { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 12px; }
.gd-auth { display: flex; gap: 12px; align-items: flex-start; }
.gd-auth-mark { width: 24px; height: 24px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: .8125rem; font-weight: 700; }
.gd-auth-mark.is-active { background: #E8F5E9; color: #2E7D32; }
.gd-auth-mark.is-revoked { background: var(--gd-primary-95); color: var(--gd-muted); }
.gd-auth-label { margin: 0; font-size: .9375rem; line-height: 1.45; color: var(--gd-ink); }
.gd-auth-status { margin: 2px 0 0; font-size: .8125rem; color: var(--gd-muted); }
.gd-foot { margin-top: 24px; font-size: .75rem; line-height: 1.55; color: var(--gd-muted); }
.gd-foot a { color: var(--gd-muted); text-decoration: underline; }
