/* Danibest Login */
:root {
    --dlp-accent: #f5b301;
    --dlp-navy: #0b1530;
    --dlp-navy-2: #12224a;
    --dlp-ink: #0f172a;
    --dlp-muted: #64748b;
    --dlp-line: #e2e8f0;
    --dlp-field: #f8fafc;
    --dlp-red: #dc2626;
    --dlp-green: #15803d;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.dlp-body {
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--dlp-ink);
    background: #eef2f7;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.dlp-shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(380px, 46%) 1fr; }

/* Left: brand panel */
.dlp-side {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(circle at 15% 12%, color-mix(in srgb, var(--dlp-accent) 22%, transparent), transparent 42%),
        radial-gradient(circle at 90% 88%, color-mix(in srgb, var(--dlp-accent) 30%, transparent), transparent 45%),
        linear-gradient(160deg, var(--dlp-navy-2), var(--dlp-navy) 65%);
    display: flex; align-items: center; padding: 56px;
}
.dlp-side::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000, transparent 80%);
}
.dlp-side-inner { position: relative; z-index: 1; max-width: 460px; }
.dlp-side h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; margin: 48px 0 26px; font-weight: 800; letter-spacing: -.02em; }
.dlp-side h2 span { color: var(--dlp-accent); }
.dlp-points { list-style: none; margin: 0 0 34px; padding: 0; display: grid; gap: 14px; }
.dlp-points li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #dbe4f5; }
.dlp-points li span { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: 17px; }
.dlp-nets { display: flex; flex-wrap: wrap; gap: 8px; }
.dlp-nets i { font-style: normal; font-weight: 700; font-size: 12.5px; padding: 7px 14px; border-radius: 999px; }
.n-mtn { background: #ffcc00; color: #111; }
.n-tel { background: #e60000; color: #fff; }
.n-at  { background: #0b4fd8; color: #fff; }

/* Brand */
.dlp-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--dlp-ink); font-weight: 700; font-size: 18px; }
.dlp-brand-light { color: #fff; }
.dlp-logo-img { max-height: 46px; max-width: 200px; width: auto; display: block; }
.dlp-brand-light .dlp-logo-img { filter: drop-shadow(0 2px 8px rgba(0,0,0,.25)); }
.dlp-logo-icon { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.dlp-logo-mark { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--dlp-accent); color: var(--dlp-navy); font-weight: 800; font-size: 16px; letter-spacing: .02em; }

/* Right: the card */
.dlp-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.dlp-card { width: 100%; max-width: 430px; }
.dlp-card > .dlp-brand { display: none; margin-bottom: 22px; }

.dlp-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: #e2e8f0; border-radius: 14px; padding: 4px; margin-bottom: 26px; }
.dlp-tabs button { position: relative; z-index: 1; border: 0; background: none; font: inherit; font-weight: 600; font-size: 14.5px; color: var(--dlp-muted); padding: 11px 8px; border-radius: 11px; cursor: pointer; transition: color .2s; }
.dlp-tabs button[aria-selected="true"] { color: var(--dlp-ink); }
.dlp-tabs button:focus-visible { outline: 2px solid var(--dlp-navy-2); outline-offset: 2px; }
.dlp-tab-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); background: #fff; border-radius: 11px; box-shadow: 0 2px 8px rgba(15,23,42,.1); transition: transform .28s cubic-bezier(.3,.7,.3,1); }
.dlp-tabs[data-active="register"] .dlp-tab-pill { transform: translateX(100%); }

.dlp-title { font-size: 28px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.02em; }
.dlp-sub { margin: 0 0 24px; color: var(--dlp-muted); font-size: 14.5px; line-height: 1.55; }

.dlp-form { display: grid; gap: 16px; }
.dlp-field { display: grid; gap: 7px; }
.dlp-field > span:first-child { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 13.5px; }
.dlp-forgot { font-weight: 500; font-size: 13px; color: var(--dlp-navy-2); text-decoration: none; }
.dlp-forgot:hover { text-decoration: underline; }
.dlp-field input {
    width: 100%; font: inherit; font-size: 15.5px; color: var(--dlp-ink);
    background: var(--dlp-field); border: 1.5px solid var(--dlp-line); border-radius: 12px;
    padding: 13px 14px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.dlp-field input::placeholder { color: #94a3b8; }
.dlp-field input:focus { outline: none; background: #fff; border-color: var(--dlp-navy-2); box-shadow: 0 0 0 4px rgba(18,34,74,.12); }
.dlp-field input[aria-invalid="true"] { border-color: var(--dlp-red); }
.dlp-pass { position: relative; display: block; }
.dlp-pass input { padding-right: 70px; }
.dlp-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--dlp-navy-2); padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.dlp-eye:hover, .dlp-eye:focus-visible { background: #e2e8f0; outline: none; }

.dlp-meter { height: 5px; border-radius: 99px; background: #e2e8f0; overflow: hidden; }
.dlp-meter i { display: block; height: 100%; width: 0; border-radius: 99px; transition: width .25s, background .25s; }
.dlp-meter-text { font-size: 12.5px; color: var(--dlp-muted); min-height: 1em; }

.dlp-check { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #334155; cursor: pointer; }
.dlp-check input { width: 18px; height: 18px; accent-color: var(--dlp-navy-2); }

.dlp-btn {
    margin-top: 4px; width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 16px;
    color: var(--dlp-btn-text, var(--dlp-navy)); background: var(--dlp-accent); padding: 15px 18px; border-radius: 13px;
    box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--dlp-accent) 80%, #000);
    transition: transform .12s, filter .15s, box-shadow .15s;
}
.dlp-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.dlp-btn:active { transform: translateY(0); }
.dlp-btn:focus-visible { outline: 3px solid var(--dlp-navy-2); outline-offset: 3px; }
.dlp-btn[disabled] { opacity: .75; cursor: progress; }
.dlp-btn.is-busy > span::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: dlp-spin .7s linear infinite; }
@keyframes dlp-spin { to { transform: rotate(360deg); } }

.dlp-notice { padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; margin-bottom: 14px; border: 1px solid; }
.dlp-notice a { font-weight: 600; }
.dlp-notice-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.dlp-notice-ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.dlp-notice-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

.dlp-switch { text-align: center; margin: 22px 0 0; font-size: 14.5px; color: var(--dlp-muted); }
.dlp-switch a { color: var(--dlp-navy-2); font-weight: 700; text-decoration: none; }
.dlp-switch a:hover { text-decoration: underline; }
.dlp-terms { margin: 0; font-size: 12.5px; color: var(--dlp-muted); text-align: center; }
.dlp-back { text-align: center; margin: 28px 0 0; font-size: 13.5px; }
.dlp-back a { color: var(--dlp-muted); text-decoration: none; }
.dlp-back a:hover { color: var(--dlp-ink); }
.dlp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.dlp-panel[hidden] { display: none; }
.dlp-panel { animation: dlp-in .3s ease both; }
@keyframes dlp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Phones and small tablets: one column, dark top, card on top */
@media (max-width: 900px) {
    .dlp-shell { display: block; }
    .dlp-side { display: none; }
    body.dlp-body { background: linear-gradient(180deg, var(--dlp-navy-2) 0, var(--dlp-navy) 230px, #eef2f7 230px); }
    .dlp-main { padding: 26px 16px 32px; display: block; }
    .dlp-card { margin: 0 auto; }
    .dlp-card > .dlp-brand { display: flex; justify-content: center; color: #fff; margin: 4px 0 22px; }
    .dlp-card > .dlp-brand .dlp-logo-img { max-height: 40px; }
    .dlp-tabs { background: rgba(255,255,255,.12); }
    .dlp-tabs button { color: #cbd5e1; }
    .dlp-tabs button[aria-selected="true"] { color: var(--dlp-ink); }
    .dlp-panel { background: #fff; border-radius: 20px; padding: 24px 20px; box-shadow: 0 18px 40px -18px rgba(15,23,42,.35); }
    .dlp-title { font-size: 24px; }
    .dlp-notice { margin: 0 0 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Remembered account */
.dlp-me { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 8px 0 20px; border: 1.5px solid var(--dlp-line); border-radius: 16px; background: linear-gradient(180deg, #fff, #f8fafc); }
.dlp-avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: var(--dlp-navy); background: var(--dlp-accent); box-shadow: 0 0 0 3px #fff, 0 0 0 5px color-mix(in srgb, var(--dlp-accent) 35%, transparent); }
.dlp-avatar-lg { width: 72px; height: 72px; font-size: 30px; margin: 0 auto 18px; }
.dlp-me-text { min-width: 0; flex: 1; display: grid; }
.dlp-me-text strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlp-me-text small { color: var(--dlp-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlp-me-x { font-size: 13px; font-weight: 600; color: var(--dlp-navy-2); text-decoration: none; padding: 6px 8px; border-radius: 8px; white-space: nowrap; }
.dlp-me-x:hover { background: #eef2f7; }
/* Email field stays in the form (for saved passwords) but out of sight */
.dlp-field-tucked { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Face ID button */
.dlp-btn-bio { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--dlp-navy); color: #fff; box-shadow: 0 12px 26px -12px rgba(11,21,48,.7); margin: 0 0 4px; }
.dlp-btn-bio svg { width: 24px; height: 24px; }
.dlp-btn-bio[hidden], .dlp-or[hidden] { display: none; }
.dlp-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: #94a3b8; font-size: 13px; }
.dlp-or::before, .dlp-or::after { content: ""; flex: 1; height: 1px; background: var(--dlp-line); }

/* Phone field */
.dlp-phone { display: flex; align-items: stretch; background: var(--dlp-field); border: 1.5px solid var(--dlp-line); border-radius: 12px; transition: border-color .15s, box-shadow .15s, background .15s; }
.dlp-phone:focus-within { background: #fff; border-color: var(--dlp-navy-2); box-shadow: 0 0 0 4px rgba(18,34,74,.12); }
.dlp-phone-cc { display: flex; align-items: center; padding: 0 12px; font-weight: 600; font-size: 14px; color: #334155; border-right: 1.5px solid var(--dlp-line); white-space: nowrap; }
.dlp-field .dlp-phone input { border: 0; background: transparent; box-shadow: none; border-radius: 0 12px 12px 0; letter-spacing: .02em; }
.dlp-field .dlp-phone input:focus { box-shadow: none; }
.dlp-phone:has(input[aria-invalid="true"]) { border-color: var(--dlp-red); }
.dlp-help { font-size: 12.5px; color: var(--dlp-muted); }

/* Logged out banner */
.dlp-bye { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 22px; border-radius: 16px; background: linear-gradient(135deg, #ecfdf5, #f0fdf4); border: 1px solid #bbf7d0; animation: dlp-in .4s ease both; }
.dlp-bye-icon { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #16a34a; color: #fff; box-shadow: 0 8px 18px -8px #16a34a; }
.dlp-bye-icon svg { width: 22px; height: 22px; }
.dlp-bye strong { display: block; font-size: 15px; color: #14532d; }
.dlp-bye span { font-size: 13.5px; color: #166534; }

/* Centered cards: log out?, Face ID offer */
.dlp-center { text-align: center; }
.dlp-center .dlp-btn { display: block; text-decoration: none; text-align: center; margin-top: 10px; }
.dlp-btn-dark { background: var(--dlp-navy); color: #fff; box-shadow: 0 12px 26px -12px rgba(11,21,48,.7); }
.dlp-btn-ghost { background: transparent !important; color: var(--dlp-ink); box-shadow: none !important; border: 1.5px solid var(--dlp-line) !important; }
.dlp-btn-ghost:hover { background: #f1f5f9 !important; }
.dlp-face { width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 28px; display: grid; place-items: center; color: #2563eb; background: radial-gradient(circle at 30% 25%, #eff6ff, #dbeafe); box-shadow: inset 0 0 0 1px #bfdbfe, 0 16px 30px -16px rgba(37,99,235,.6); }
.dlp-face svg { width: 56px; height: 56px; animation: dlp-scan 2.4s ease-in-out infinite; }
@keyframes dlp-scan { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.dlp-center .dlp-terms { margin-top: 16px; }

@media (max-width: 900px) {
    .dlp-bye { margin: 0 0 16px; }
    .dlp-me { background: #f8fafc; }
}

/* Bigger brand panel on computers (fills the space better) */
@media (min-width: 901px) {
    .dlp-side { padding: 64px clamp(48px, 6vw, 96px); }
    .dlp-side-inner { max-width: 600px; }
    .dlp-brand-light { font-size: clamp(24px, 2vw, 30px); gap: 14px; }
    .dlp-brand-light .dlp-logo-icon,
    .dlp-brand-light .dlp-logo-mark { width: 60px; height: 60px; border-radius: 16px; font-size: 22px; }
    .dlp-brand-light .dlp-logo-img { max-height: 72px; max-width: 280px; }
    .dlp-side h2 { font-size: clamp(44px, 4.6vw, 70px); margin: 56px 0 34px; }
    .dlp-points { gap: 20px; margin-bottom: 42px; }
    .dlp-points li { font-size: clamp(16px, 1.3vw, 20px); gap: 16px; }
    .dlp-points li span { width: 50px; height: 50px; border-radius: 14px; font-size: 22px; }
    .dlp-nets { gap: 10px; }
    .dlp-nets i { font-size: 15px; padding: 9px 18px; }

    /* Form side a little larger too */
    .dlp-card { max-width: 470px; }
    .dlp-title { font-size: 34px; }
    .dlp-sub { font-size: 15.5px; }
    .dlp-tabs button { font-size: 15.5px; padding: 13px 8px; }
    .dlp-field > span:first-child { font-size: 14.5px; }
    .dlp-field input { font-size: 16px; padding: 15px 16px; }
    .dlp-btn { font-size: 17px; padding: 17px 18px; }
    .dlp-switch, .dlp-check { font-size: 15px; }
}

/* Site name: large */
.dlp-logo-name { font-weight: 800; letter-spacing: -.01em; }
@media (min-width: 901px) {
    .dlp-brand-light { font-size: clamp(34px, 3vw, 46px); gap: 16px; }
    .dlp-brand-light .dlp-logo-icon,
    .dlp-brand-light .dlp-logo-mark { width: 72px; height: 72px; border-radius: 20px; font-size: 26px; }
    .dlp-brand-light .dlp-logo-img { max-height: 88px; max-width: 340px; }
}
@media (max-width: 900px) {
    .dlp-card > .dlp-brand { font-size: 26px; gap: 12px; }
    .dlp-card > .dlp-brand .dlp-logo-icon,
    .dlp-card > .dlp-brand .dlp-logo-mark { width: 52px; height: 52px; border-radius: 15px; font-size: 19px; }
    .dlp-card > .dlp-brand .dlp-logo-img { max-height: 54px; }
}

/* "Not you?" next to the email label */
.dlp-notyou { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; font-size: 13px; color: var(--dlp-navy-2); cursor: pointer; }
.dlp-notyou[hidden] { display: none; }
/* Keep our colours even when the phone's browser is in dark mode */
:root { color-scheme: light only; }
