/* Denza OneGo auth screens — styled to the "[Denza] - OneGo SSO" Figma sign-off.
   Primary colour = Denza brand colour #103561 (same as the theme's @color-primary). */

:root {
    --denza-navy: #103561; /* Denza brand colour */
    --denza-navy-dark: #0b2d4e;
    --denza-ink: #101820;
    --denza-label: #103561; /* Figma: labels share the link navy */
    --denza-muted: #5b6670;
    --denza-border: #dfe3e8;
    --denza-placeholder: #9aa6b2;
}

/* --- strip the storefront chrome so the auth screen is full-bleed --- */
.denza-auth-page .page-header,
.denza-auth-page .page-footer,
.denza-auth-page .breadcrumbs,
.denza-auth-page .nav-sections,
.denza-auth-page .page-main > .page-title-wrapper,
.denza-auth-page .page-title-wrapper { display: none !important; }
html, body.denza-auth-page { height: 100%; }
.denza-auth-page .page-wrapper { min-height: 100vh; }
.denza-auth-page .page-main {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}
.denza-auth-page .columns,
.denza-auth-page .column.main {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
}
.denza-auth-page .page.messages {
    position: fixed;
    top: 16px;
    right: 16px;
    left: auto;
    width: min(420px, 90vw);
    z-index: 20;
    margin: 0;
}

/* --- layout --- */
.denza-auth {
    display: flex;
    min-height: 100vh;
    /* Denza brand font (Figma) — @font-face comes from the denza-theme (themes_fonts.less) */
    font-family: 'URWFormExpand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--denza-ink);
}
.denza-auth__hero {
    position: relative;
    flex: 1 1 50%;
    background: #0b0f14 url('../images/auth-hero.jpg') center 30% / cover no-repeat;
    min-height: 100vh;
}
.denza-auth__hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 10, 16, 0) 45%, rgba(6, 10, 16, .82) 100%);
}
.denza-auth-page .denza-auth__hero .denza-auth__hero-caption {
    position: absolute;
    left: 56px;
    bottom: 64px;
    z-index: 1;
    margin: 0;
    max-width: calc(100% - 112px); /* Figma: two lines, "Technology Drives / Elegance" */
    color: #fff !important;
    font-weight: 400 !important;
    font-size: 52px !important;
    line-height: 1.08 !important;
    letter-spacing: .5px;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
.denza-auth__panel {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    padding: 48px 40px;
    background: #fff;
}
.denza-auth__card {
    width: 100%;
    max-width: 480px; /* Figma: form column ≈ 1/3 of a 1440 frame */
    margin: auto 0; /* vertical-centre but stay scrollable when the form is tall */
}
.denza-row {
    display: flex;
    gap: 14px;
}
.denza-row > .denza-field {
    flex: 1;
}
.denza-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0;
    font-size: 12px; /* Figma: the terms sentence fits on one line */
    line-height: 18px;
    color: #737373;
    cursor: pointer;
}
.denza-check input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    flex: 0 0 auto;
    accent-color: var(--denza-navy);
}
.denza-auth__logo {
    display: block;
    height: auto;
    width: 230px;
    margin: 0 auto 40px;
}

/* --- form elements --- */
/* the theme gives inputs Luma's Open Sans; Figma uses the brand font for values and placeholders too */
.denza-auth-page .denza-auth input,
.denza-auth-page .denza-auth select,
.denza-auth-page .denza-auth textarea,
.denza-auth-page .denza-auth input::placeholder {
    font-family: inherit;
}
.denza-field { margin-bottom: 18px; }
/* sign-up and forgot-password flows (Figma): labels are black, not brand navy */
.denza-auth--black-labels .denza-field > label { color: #000; }
.denza-field > label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 400;
    color: var(--denza-label);
}
.denza-field input,
.denza-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 15px 16px;
    font-size: 15px;
    color: var(--denza-ink);
    background: #fff;
    border: 1px solid var(--denza-border);
    border-radius: 10px;
    appearance: none;
    -webkit-appearance: none;
}
/* The theme fixes inputs and selects at 32px; match the Figma where every field is the same height. */
.denza-field input {
    height: 50px;
}
.denza-field select {
    /* Override the theme's fixed select height (32px), which clips the value text. */
    height: 50px;
    line-height: 1.2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230f3a64' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 42px;
}
.denza-field input::placeholder { color: var(--denza-placeholder); }
.denza-field input:focus,
.denza-field select:focus {
    outline: none;
    border-color: var(--denza-navy);
    box-shadow: 0 0 0 3px rgba(16, 53, 97, .12);
}

.denza-forgot {
    text-align: right;
    margin: -4px 0 6px;
}
.denza-forgot a,
.denza-help a,
.denza-back {
    color: var(--denza-navy) !important; /* Figma: navy, not the theme's link colour */
    text-decoration: none;
    font-weight: 400; /* Figma: regular, not bold */
}
.denza-forgot a { font-size: 14px; }
/* Figma has no hover state for these links — the theme makes every a:hover/:focus/:active/:visited
   bold black; keep them regular navy in every state */
.denza-auth-page .denza-forgot a:hover,
.denza-auth-page .denza-forgot a:focus,
.denza-auth-page .denza-forgot a:active,
.denza-auth-page .denza-forgot a:visited,
.denza-auth-page .denza-help a:hover,
.denza-auth-page .denza-help a:focus,
.denza-auth-page .denza-help a:active,
.denza-auth-page .denza-help a:visited,
.denza-auth-page a.denza-back:hover,
.denza-auth-page a.denza-back:focus,
.denza-auth-page a.denza-back:active,
.denza-auth-page a.denza-back:visited {
    color: var(--denza-navy) !important;
    font-weight: 400 !important;
    text-decoration: none !important;
}

.denza-btn {
    display: block;
    width: 100%;
    padding: 16px;
    margin-top: 16px;
    border: none;
    border-radius: 999px;
    background: var(--denza-navy);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s ease;
}
/* The theme styles button:hover/:focus/:active with dark grey text, a grey border and an
   inset shadow — pin every state so only the background darkens. */
.denza-auth-page .denza-btn:hover,
.denza-auth-page .denza-btn:focus,
.denza-auth-page .denza-btn:active {
    background: var(--denza-navy-dark);
    color: #fff;
    border: none;
    box-shadow: none;
}
.denza-auth-page .denza-btn:focus-visible {
    outline: 2px solid var(--denza-navy);
    outline-offset: 2px;
}

.denza-help {
    text-align: right;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 400;
    color: var(--denza-navy);
}

.denza-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 28px;
    font-size: 15px;
}
.denza-back::before {
    content: '';
    width: 9px;
    height: 9px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.denza-steps {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}
.denza-steps span {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e6e8ec;
}
.denza-steps span.is-active { background: var(--denza-navy); }

.denza-title {
    margin: 0 0 28px;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--denza-ink);
}
.denza-hint {
    margin: -6px 0 18px;
    font-size: 14px;
    color: var(--denza-muted);
}
.denza-sub {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
    color: var(--denza-muted);
}
.denza-sub a { color: var(--denza-navy); font-weight: 600; text-decoration: none; }

/* --- entry screen: Login / OR / Sign Up --- */
a.denza-btn {
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
}
a.denza-btn:hover,
a.denza-btn:visited { color: #fff; text-decoration: none; }
.denza-auth-page .denza-btn.denza-btn--outline {
    background: #fff;
    color: var(--denza-navy);
    border: 1.5px solid var(--denza-navy);
}
.denza-auth-page .denza-btn.denza-btn--outline:hover {
    background: rgba(16, 53, 97, .06);
    color: var(--denza-navy);
}
.denza-or {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 22px 0 6px;
    color: #b8bec6;
    font-size: 12px;
    letter-spacing: .5px;
}
.denza-or::before,
.denza-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e6e8ec;
}

/* --- terms checkbox links --- */
/* Figma: regular-weight blue links, no hover state (theme makes every link state bold black) */
.denza-auth-page .denza-check a,
.denza-auth-page .denza-check a:hover,
.denza-auth-page .denza-check a:focus,
.denza-auth-page .denza-check a:active,
.denza-auth-page .denza-check a:visited {
    color: #3d68c6 !important;
    font-weight: 400 !important;
    text-decoration: none !important;
}

/* --- OTP verification screens --- */
/* The theme forces heading/paragraph colours with !important — override with ≥3 classes. */
.denza-auth-page .denza-auth__card .denza-title { color: var(--denza-ink) !important; }
.denza-auth-page .denza-auth__card p.denza-otp-sent,
.denza-auth-page .denza-auth__card p.denza-lead {
    margin: -8px 0 10px;
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: #9aa0a6 !important;
}
/* grey subtitle under a title ("Please enter your new password…") */
.denza-auth-page .denza-auth__card p.denza-lead { margin-bottom: 24px; }
.denza-auth-page .denza-auth__card p.denza-otp-sent strong {
    font-weight: 500;
    color: var(--denza-navy) !important;
}
.denza-auth-page .denza-auth__card > a.denza-link { font-size: 16px; }
/* underlined navy text links ("Update Email Address", "Resend"); also used on <button> */
.denza-auth-page .denza-link {
    display: inline;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    box-shadow: none;
    font: inherit;
    font-weight: 600;
    color: var(--denza-navy);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.denza-auth-page .denza-link:disabled {
    color: #9aa0a6;
    text-decoration: none;
    cursor: default;
}
.denza-otp {
    display: flex;
    gap: 10px;
    margin: 32px 0 8px;
}
.denza-auth-page .denza-otp input {
    flex: 1;
    min-width: 0;
    height: 64px;
    padding: 0;
    text-align: center;
    font-size: 24px;
    font-family: inherit;
    color: var(--denza-ink);
    background: #fff;
    border: 1px solid var(--denza-border);
    border-radius: 10px;
}
.denza-auth-page .denza-otp input:focus {
    outline: none;
    border-color: var(--denza-navy);
    box-shadow: 0 0 0 3px rgba(16, 53, 97, .12);
}
.denza-resend {
    margin-top: 14px;
    text-align: right;
    font-size: 13px;
    color: #9aa0a6;
}
.denza-resend .denza-link { font-weight: 500; }

/* --- responsive --- */
@media (max-width: 900px) {
    .denza-auth { flex-direction: column; }
    .denza-auth__hero { min-height: 240px; flex-basis: auto; }
    .denza-auth-page .denza-auth__hero .denza-auth__hero-caption { font-size: 30px !important; left: 24px; bottom: 24px; max-width: 80%; }
    .denza-auth__panel { padding: 32px 20px; }
}
