/* ---------------------------------------------------------------------------
   Sign in and sign up, per the canvas: a 640px form column on the paper ground
   and a soft-blue panel carrying the promise and two reviews. Tokens only.
   --------------------------------------------------------------------------- */
.dt-auth {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: var(--dt-paper);
}

/* ------------------------------------------------------------ form column */
.dt-auth-form {
    flex: 0 0 640px;
    max-width: 640px;
    padding: 48px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
}
.dt-auth-form .dt-auth-logo { height: 38px; width: auto; align-self: flex-start; }
.dt-auth-form h1 {
    font-family: var(--dt-font-heading);
    font-size: 30px;
    font-weight: 800;
    color: var(--dt-ink);
    margin: 0;
    letter-spacing: -0.02em;
}
.dt-auth-form .dt-auth-sub { font-size: var(--dt-t-md); color: var(--dt-ink-muted); margin-top: 6px; }

.dt-auth-social { display: flex; flex-direction: column; gap: 11px; }

/* Our own button face, with the provider's real widget laid over it, invisible.
   The person clicks Google's or Apple's own button — a real gesture on their
   element, which is what keeps their popup from being blocked — and sees ours. */
.dt-social {
    position: relative;
    height: 48px;
    border-radius: var(--dt-r);
    overflow: hidden;
    isolation: isolate;
}
.dt-social-face {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: var(--dt-r);
    border: 1.5px solid var(--dt-line-strong);
    background: var(--dt-panel);
    font-family: var(--dt-font-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: normal;
    color: var(--dt-ink);
    transition: border-color var(--dt-dur-enter) var(--dt-ease-enter),
                background-color var(--dt-dur-enter) var(--dt-ease-enter);
}
.dt-social:hover .dt-social-face { border-color: var(--dt-primary); background: var(--dt-panel-2); }
.dt-social:active .dt-social-face { transform: scale(0.995); }
.dt-social.is-apple .dt-social-face {
    background: #000000;
    border-color: #000000;
    color: #FFFFFF;
}
.dt-social.is-apple:hover .dt-social-face { background: #1A1A1A; border-color: #1A1A1A; }

/* the provider's widget: on top, full size, invisible, and still clickable */
.dt-social .sign_in_button_container {
    position: absolute;
    inset: 0;
    z-index: 2;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}
.dt-social .sign_in_button_container > div { width: 100% !important; height: 100% !important; }
.dt-social .sign_in_button_container iframe { width: 100% !important; height: 100% !important; }
/* keyboard reaches the provider's own control, so the face shows the ring */
.dt-social:focus-within .dt-social-face {
    outline-style: solid;
    outline-width: var(--dt-ring-width);
    outline-offset: 2px;
    outline-color: var(--dt-ring);
}

.dt-auth-or { display: flex; align-items: center; gap: 14px; }
.dt-auth-or::before, .dt-auth-or::after { content: ""; flex: 1; height: 1px; background: var(--dt-line); }
.dt-auth-or span {
    font-family: var(--dt-font-heading);
    font-size: var(--dt-t-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--dt-ink-muted);
    white-space: nowrap;
}

.dt-auth-fields { display: flex; flex-direction: column; gap: 15px; }
.dt-field { position: relative; display: flex; flex-direction: column; gap: 6px; }
.dt-field label, .dt-field .dt-field-label {
    font-family: var(--dt-font-body);
    font-size: var(--dt-t-xs);
    font-weight: 600;
    color: var(--dt-ink);
    margin: 0;
}
.dt-field-input { position: relative; display: flex; align-items: center; }
.dt-field-input .dt-field-icon {
    position: absolute;
    left: 14px;
    color: var(--dt-ink-muted);
    pointer-events: none;
    display: flex;
}
.dt-auth .dt-field input.form-control,
.dt-auth .dt-field input[type="email"],
.dt-auth .dt-field input[type="password"],
.dt-auth .dt-field input[type="text"] {
    width: 100%;
    min-height: 48px;
    padding: 12px 15px 12px 42px;
    border-radius: 11px;
    border: 1.5px solid var(--dt-line);
    background: var(--dt-panel);
    font-size: var(--dt-t-base);
    color: var(--dt-ink);
}
.dt-auth .dt-field input::placeholder { color: var(--dt-ink-muted); opacity: 1; }
.dt-auth .dt-field input:focus {
    border-color: var(--dt-primary);
    box-shadow: 0 0 0 3px var(--dt-primary-soft);
    outline-style: solid !important;
    outline-width: var(--dt-ring-width) !important;
    outline-offset: var(--dt-ring-offset) !important;
    outline-color: var(--dt-ring) !important;
}
/* The theme draws this as the words "show" / "hide" (style.min.css:
   `.show-hide span.show:before { content: "show" }`) at a fixed top:52px. An eye
   reads faster and sits inside the field; the click target is unchanged. */
.dt-auth .dt-field .show-hide {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    height: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}
.dt-auth .dt-field .show-hide span.show::before,
.dt-auth .dt-field .show-hide span::before { content: "" !important; }
.dt-auth .dt-field .show-hide span {
    display: block;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 19px 19px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 24 24' fill='none' stroke='%230369A1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12s3.6-6 10-6 10 6 10 6-3.6 6-10 6-10-6-10-6z'/><circle cx='12' cy='12' r='2.6'/></svg>");
}
.dt-auth .dt-field .show-hide span.hide {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 24 24' fill='none' stroke='%230369A1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4 4l16 16'/><path d='M9.9 5.2A9.6 9.6 0 0 1 12 5c6.4 0 10 6 10 6a17 17 0 0 1-3.2 3.9'/><path d='M6.3 7.5C3.7 9.2 2 12 2 12s3.6 6 10 6a9.9 9.9 0 0 0 3.6-.7'/></svg>");
}

.dt-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.dt-auth-row a { font-size: var(--dt-t-xs); font-weight: 600; }

.dt-auth .dt-auth-submit {
    width: 100%;
    min-height: 50px;
    padding: 14px;
    border-radius: 11px;
    border: none;
    background: var(--dt-solid);
    color: var(--dt-on-solid);
    font-family: var(--dt-font-heading);
    font-size: var(--dt-t-md);
    font-weight: 700;
    cursor: pointer;
}
.dt-auth .dt-auth-submit:hover { filter: brightness(1.08); }

.dt-auth-foot { text-align: center; font-size: var(--dt-t-sm); color: var(--dt-ink-muted); }
.dt-auth-foot a { font-weight: 600; margin-left: 4px; }

.dt-auth-error {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 14px;
    border-radius: var(--dt-r);
    background: var(--dt-warn-soft);
    border-left: 3px solid var(--dt-warn);
    color: var(--dt-warn-ink);
    font-size: var(--dt-t-xs);
    line-height: 1.5;
}
/* the Google / Apple sign-in error line (#login_error, filled by js/pages/login.js):
   it sat after the full-height .dt-auth, where an empty one pushed the page 8 px past
   the screen and a real message was out of sight; now it is in the form, and hidden
   until there is something to say */
.dt-auth-error-social:empty { display: none; }
.dt-auth-note {
    padding: 12px 14px;
    border-radius: var(--dt-r);
    background: var(--dt-good-soft);
    border-left: 3px solid var(--dt-good);
    color: var(--dt-good-ink);
    font-size: var(--dt-t-xs);
    line-height: 1.5;
}

/* -------------------------------------------------------- reviews column */
.dt-auth-side {
    flex: 1;
    background: var(--dt-primary-soft);
    padding: 48px 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
    min-width: 0;
}
.dt-auth-side::before {
    content: "";
    position: absolute;
    top: -180px; right: -140px;
    width: 520px; height: 520px;
    border-radius: 50%;
    background: rgba(2, 132, 199, 0.06);
}
.dt-auth-side .dt-auth-claim { position: relative; display: flex; flex-direction: column; gap: 14px; }
.dt-auth-side h2 {
    font-family: var(--dt-font-heading);
    font-size: 38px;
    font-weight: 800;
    color: var(--dt-ink);
    line-height: 1.2;
    max-width: 640px;
    margin: 0;
    letter-spacing: -0.02em;
}
.dt-auth-side .dt-auth-claim p { font-size: var(--dt-t-md); color: var(--dt-ink-body); max-width: 560px; line-height: 1.6; margin: 0; }

.dt-reviews { display: flex; gap: 24px; position: relative; align-items: flex-start; }
.dt-review {
    background: var(--dt-panel);
    border-radius: 18px;
    padding: 26px 28px;
    flex: 1;
    max-width: 380px;
    min-width: 0;
    box-shadow: 0 20px 48px rgba(2, 132, 199, 0.10);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.dt-review:nth-child(2) { margin-top: 36px; }
.dt-review .stars { display: flex; gap: 2px; color: var(--dt-primary); }
.dt-review .text { font-size: var(--dt-t-md); color: var(--dt-ink-body); line-height: 1.55; }
.dt-review .who { display: flex; align-items: center; gap: 11px; }
.dt-review .avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--dt-secondary-soft);
    color: var(--dt-secondary);
    font-family: var(--dt-font-heading);
    font-size: var(--dt-t-base);
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.dt-review .avatar img { width: 100%; height: 100%; object-fit: cover; }
.dt-review .name { font-size: var(--dt-t-sm); font-weight: 600; color: var(--dt-ink); }
.dt-review .name span { font-weight: 400; color: var(--dt-ink-muted); }

@media (max-width: 1200px) {
    .dt-auth-side { display: none; }
    .dt-auth-form { flex: 1; max-width: none; padding: 40px 32px; }
}

/* the remember-me control the artboard draws: a 17px square that fills with
   the primary when checked */
.dt-auth .dt-check {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: var(--dt-t-xs);
    font-weight: 400;
    color: var(--dt-ink-body);
    margin: 0;
    cursor: pointer;
    user-select: none;
}
.dt-auth .dt-check input {
    position: absolute;
    opacity: 0;
    width: 17px;
    height: 17px;
    margin: 0;
}
.dt-auth .dt-check .box {
    width: 17px; height: 17px;
    border-radius: 5px;
    border: 1.5px solid var(--dt-pending-stripe);
    background: var(--dt-panel);
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dt-auth .dt-check input:checked + .box {
    background: var(--dt-primary);
    border-color: var(--dt-primary);
    color: #FFFFFF;
}
.dt-auth .dt-check input:focus-visible + .box {
    outline-style: solid !important;
    outline-width: var(--dt-ring-width) !important;
    outline-offset: var(--dt-ring-offset) !important;
    outline-color: var(--dt-ring) !important;
}

/* the artboard puts password and its repeat side by side */
.dt-field-pair { display: flex; gap: 14px; }
.dt-field-pair > .dt-field { flex: 1; min-width: 0; }
@media (max-width: 640px) { .dt-field-pair { flex-direction: column; } }

/* the phone field has no leading icon, so it keeps the plain padding */
.dt-auth .phone-input-wrapper input.form-control { padding-left: 15px; }
.dt-auth .phone-input-wrapper .iti { width: 100%; }
/* "(optional)" wears bootstrap's .text-muted, #6c757d, which all but vanishes on the dark paper */
.dt-auth .dt-field label .text-muted { color: var(--dt-ink-muted) !important; font-weight: 500; }
.dt-auth .dt-check a { font-weight: 600; }

/* ---------------------------------------------------------------------------
   The utility pages of the auth flow — verify your email, ask for a reset link,
   set a new password, confirm the current one. They have nothing to show beside
   the form, so they drop the reviews column and centre the single card.
   --------------------------------------------------------------------------- */
.dt-auth.is-single { grid-template-columns: minmax(0, 1fr); }
.dt-auth.is-single .dt-auth-form {
    max-width: 520px;
    margin: 0 auto;
    justify-content: center;
}
.dt-auth-icon {
    width: 56px;
    height: 56px;
    border-radius: 17px;
    background: var(--dt-primary-soft);
    color: var(--dt-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dt-auth-mailbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--dt-pending-soft);
    font-family: var(--dt-font-mono);
    font-size: 13.5px;
    line-height: normal;
    color: var(--dt-ink);
    word-break: break-all;
}
.dt-auth-steps { display: flex; flex-direction: column; gap: 12px; }
.dt-auth-step { display: flex; align-items: flex-start; gap: 12px; }
.dt-auth-step .n {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--dt-primary-soft);
    color: var(--dt-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--dt-font-heading);
    font-size: 12px;
    font-weight: 800;
    line-height: normal;
    flex-shrink: 0;
}
.dt-auth-step .say { font-size: 13.5px; line-height: 1.5; color: var(--dt-ink-body); }
.dt-auth-step .say a { color: var(--dt-secondary); font-weight: 600; }

/* The auth layout does not load dt-pages.css, so the violet .btn-primary from
   custom.css (fill #7a70ba on hover, hard shadow 0 4px 0 #5f588e) reaches these
   pages too. Same answer, same weight. */
.dt-auth .btn-primary,
.dt-auth .btn-primary:hover,
.dt-auth .btn-primary:focus,
.dt-auth .btn-primary:active {
    min-height: 46px;
    border-radius: 12px !important;
    background: var(--dt-secondary) !important;
    border-color: var(--dt-secondary) !important;
    color: var(--dt-on-solid) !important;
    box-shadow: none !important;
    top: 0 !important;
    font-family: var(--dt-font-heading);
    font-size: 14px;
    font-weight: 700;
}
.dt-auth .btn-primary:hover { filter: brightness(1.06); }
.dt-auth .btn-primary:focus-visible {
    outline-style: solid !important;
    outline-width: var(--dt-ring-width) !important;
    outline-offset: 3px !important;
    outline-color: var(--dt-ring) !important;
}
.dt-auth .dt-field .show-hide:focus-visible { outline: var(--dt-ring-width) solid var(--dt-ring); outline-offset: 3px; border-radius: 6px; }
body.dark-only .dt-auth .dt-field .show-hide span { filter: brightness(1.6); }
