/* Shared OTP sign-in: scoped to auth pages; respects the main site's theme tokens. */
/* Keep auth pages below fixed navigation without a large hero breadcrumb. */
.ck-auth-page .ck-auth-section { padding-top: 96px; }
.ck-auth-page .ck-auth-breadcrumb {
    display: flex; align-items: center; flex-wrap: wrap; gap: 9px;
    margin: 0 0 16px; padding: 0; font-size: 12px; line-height: 1.7;
    color: var(--ck-muted); text-align: right;
}
.ck-auth-page .ck-auth-breadcrumb a {
    color: var(--ck-muted); text-decoration: none;
    transition: color .18s ease;
}
.ck-auth-page .ck-auth-breadcrumb a:hover,
.ck-auth-page .ck-auth-breadcrumb a:focus-visible { color: var(--ck-primary); }
.ck-auth-page .ck-auth-breadcrumb i { color: var(--ck-muted); opacity: .55; font-size: 10px; }
.ck-auth-page .ck-auth-breadcrumb [aria-current="page"] { color: var(--ck-text); font-weight: 600; }
.ck-auth-page .ck-auth-col { width: 100%; min-width: 0; max-width: 520px; }
.ck-auth-page .ck-auth-card {
    height: auto; min-width: 0; padding: clamp(22px, 4vw, 38px);
    border-radius: 24px; overflow: visible;
    background: var(--ck-bg-2); border: 1px solid var(--ck-border);
    box-shadow: 0 20px 65px -45px rgba(0,0,0,.35);
}
.ck-auth-page .ck-auth-card:hover { transform: none; box-shadow: 0 20px 65px -45px rgba(0,0,0,.35); }
.ck-auth-page .ck-auth-form, .ck-auth-page .ck-auth-form * { box-sizing: border-box; }
.ck-auth-page .ck-otp-mark {
    display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px;
    color: var(--ck-primary); background: var(--ck-surface); border: 1px solid var(--ck-border);
    font-size: 25px; margin-bottom: 18px;
}
.ck-auth-page .ck-otp-steps { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; min-width: 0; }
.ck-auth-page .ck-otp-steps span:not(.ck-otp-step-line) {
    display: inline-flex; align-items: center; gap: 7px; font-size: 12px;
    color: var(--ck-muted); white-space: nowrap;
}
.ck-auth-page .ck-otp-steps b {
    width: 23px; height: 23px; display: inline-grid; place-items: center;
    border: 1px solid var(--ck-border); border-radius: 50%; font-size: 11px;
}
.ck-auth-page .ck-otp-steps .is-current { color: var(--ck-text-heading) !important; font-weight: 700; }
.ck-auth-page .ck-otp-steps .is-current b { color: var(--ck-btn-text); background: var(--ck-primary); border-color: var(--ck-primary); }
.ck-auth-page .ck-otp-step-line { flex: 1; height: 1px; background: var(--ck-border); min-width: 10px; }
.ck-auth-page .ck-otp-title { color: var(--ck-text-heading); font-size: 23px; font-weight: 850; margin: 0 0 6px; line-height: 1.6; }
.ck-auth-page .ck-otp-subtitle { color: var(--ck-muted); font-size: 14px; line-height: 1.95; margin: 0 0 20px; }
.ck-auth-page .ck-auth-form { min-width: 0; }
.ck-auth-page .ck-auth-form .form-label { color: var(--ck-text); font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.ck-auth-page .ck-otp-input-wrap { position: relative; min-width: 0; }
.ck-auth-page .ck-otp-input-wrap > i { position: absolute; top: 50%; inset-inline-start: 15px; transform: translateY(-50%); color: var(--ck-muted); font-size: 19px; }
.ck-auth-page .ck-auth-form .form-control {
    display: block; width: 100%; max-width: 100%; min-width: 0; height: 54px;
    padding: 11px 14px; margin: 0 !important; font-size: 16px;
    color: var(--ck-text); background: var(--ck-input-bg); border: 1px solid var(--ck-border);
    border-radius: 13px; box-shadow: none; direction: ltr;
}
.ck-auth-page .ck-otp-input-wrap .form-control { padding-inline: 46px 15px; text-align: left; }
.ck-auth-page .ck-auth-form .form-control:focus {
    border-color: var(--ck-primary); background: var(--ck-input-bg-focus);
    outline: 2px solid color-mix(in srgb, var(--ck-primary) 20%, transparent); outline-offset: 1px;
}
.ck-auth-page .ck-auth-form .form-control::placeholder { color: var(--ck-input-placeholder); opacity: 1; }
/* Validation stays inside the form: no browser-native English bubbles. */
.ck-auth-page .ck-otp-field-error {
    margin: 7px 2px 0; padding: 0; color: #ff9393;
    font-size: 12px; line-height: 1.85; text-align: right;
}
.ck-auth-page .ck-auth-form .form-control[aria-invalid="true"] {
    border-color: #d35c5c !important;
    box-shadow: 0 0 0 2px color-mix(in srgb, #d35c5c 16%, transparent);
}
html[data-theme="light"] .ck-auth-page .ck-otp-field-error { color: #b42318; }
.ck-auth-page .ck-otp-field-error[hidden] { display: none !important; }
.ck-auth-page .ck-otp-hint { color: var(--ck-muted); font-size: 11.5px; line-height: 1.7; margin: 8px 0 18px; }
.ck-auth-page .ck-otp-primary {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; min-height: 52px; font-size: 15px; border-radius: 13px;
}
.ck-auth-page .ck-otp-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.ck-auth-page .ck-otp-notice {
    border: 1px solid var(--ck-border); padding: 11px 13px; border-radius: 12px;
    background: var(--ck-surface); color: var(--ck-text); font-size: 13px;
    margin-bottom: 16px; line-height: 1.8;
}
.ck-auth-page .ck-otp-notice.is-error { border-color: #d68a8a; color: #e35d5d; }
.ck-auth-page .ck-otp-notice.is-success { border-color: var(--ck-primary); color: var(--ck-primary); }
.ck-auth-page .ck-otp-phone-row {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 10px; padding: 11px 13px; margin-bottom: 16px;
    border: 1px solid var(--ck-border); background: var(--ck-surface); border-radius: 12px;
}
.ck-auth-page .ck-otp-phone-row > div { min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ck-auth-page .ck-otp-muted { color: var(--ck-muted); font-size: 12px; }
.ck-auth-page .ck-otp-link { background: none; border: 0; padding: 4px; color: var(--ck-primary); cursor: pointer; font: inherit; font-size: 12px; font-weight: 750; }
.ck-auth-page .ck-otp-link:focus-visible, .ck-auth-page .ck-otp-resend button:focus-visible { outline: 2px solid var(--ck-primary); outline-offset: 4px; border-radius: 5px; }
.ck-auth-page .ck-otp-code { text-align: center; letter-spacing: .85rem; font-weight: 800; font-size: 24px !important; font-variant-numeric: tabular-nums; padding-inline: 24px !important; }
.ck-auth-page .ck-otp-countdowns { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 5px; color: var(--ck-muted); font-size: 12px; margin: 12px 0 18px; }
.ck-auth-page .ck-otp-resend { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.ck-auth-page .ck-otp-resend button { background: none; border: 0; color: var(--ck-primary); padding: 7px 3px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 750; }
.ck-auth-page .ck-otp-resend button:disabled { color: var(--ck-muted); cursor: not-allowed; }
.ck-auth-page .ck-otp-resend span { color: var(--ck-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ck-auth-page .ck-otp-footnote { display: flex; gap: 7px; justify-content: center; margin: 23px 0 0; color: var(--ck-muted); font-size: 11px; line-height: 1.9; }
.ck-auth-page [hidden] { display: none !important; }
/* Only auth screens: constrain shared fixed navigation and clip residual decorative overflow.
   The form, row and container sizes are corrected below; this is a guard for global artwork. */
@supports (overflow: clip) {
    html:has(body.ck-auth-page) { overflow-x: clip; }
    body.ck-auth-page { overflow-x: clip; }
}
.ck-auth-page .ck-nav, .ck-auth-page .ck-mobile-bottom-nav { max-inline-size: 100%; }
/* Prevent auth-specific rows and inner flex children from affecting root scroll width. */
.ck-auth-page .ck-page-hero, .ck-auth-page .ck-auth-section, .ck-auth-page .ck-footer { max-width: 100%; }
.ck-auth-page .ck-auth-section .container, .ck-auth-page .ck-page-hero .container { min-width: 0; max-width: 100%; }
.ck-auth-page .ck-auth-section .row { margin-inline: 0; }
.ck-auth-page .ck-auth-section .ck-auth-col { padding-inline: 0; }
@media (max-width: 991.98px) {
    .ck-auth-page .ck-auth-section { padding-top: calc(84px + env(safe-area-inset-top, 0px)); }
    .ck-auth-page .ck-auth-breadcrumb { margin-bottom: 12px; font-size: 11px; }
    .ck-auth-page .ck-page-hero { padding: calc(80px + env(safe-area-inset-top, 0px)) 0 5px; }
    .ck-auth-page .ck-page-hero .ck-eyebrow, .ck-auth-page .ck-page-hero h1 { display: none; }
    .ck-auth-page .ck-page-hero nav { font-size: 11px; line-height: 1.7; }
    .ck-auth-page .ck-auth-section .container { padding-inline: 14px; }
    .ck-auth-page .ck-auth-card { padding: 21px; border-radius: 18px; }
    .ck-auth-page .ck-otp-title { font-size: 20px; }
    .ck-auth-page .ck-otp-subtitle { font-size: 13px; }
    .ck-auth-page .ck-auth-section { padding-bottom: 24px !important; }
}
@media (max-width: 359.98px) {
    .ck-auth-page .ck-auth-section .container { padding-inline: 10px; }
    .ck-auth-page .ck-auth-card { padding: 16px; }
    .ck-auth-page .ck-otp-steps { gap: 6px; }
    .ck-auth-page .ck-otp-steps span:not(.ck-otp-step-line) { font-size: 11px; }
}
