/* Delivermoor auth — Extreme Savers login shell */

.dm-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dm-auth {
    min-height: 100vh;
    margin: 0;
    font-family: var(--mm-font, 'Rubik', system-ui, sans-serif);
    color: #fff;
    background:
        radial-gradient(50% 55% at 50% 0%, rgba(255, 133, 187, 0.14), transparent 55%),
        radial-gradient(40% 45% at 85% 80%, rgba(75, 134, 180, 0.18), transparent 55%),
        #021A54;
    -webkit-font-smoothing: antialiased;
}

.dm-auth-shell {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dm-auth-nav-inner {
    width: min(100% - 40px, 1120px);
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dm-auth-brand {
    display: inline-flex;
    align-items: center;
}

.dm-auth-brand img {
    display: block;
    height: 44px;
    width: auto;
    filter: brightness(1.08) contrast(1.1) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

.dm-auth-brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.dm-auth-main {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px 56px;
}

.dm-auth-card-wrap {
    width: min(100%, 420px);
}

.dm-auth-flash {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 600;
}

.dm-auth-flash.is-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.dm-auth-flash-meta {
    display: block;
    margin-top: 4px;
    font-size: 0.82rem;
    font-weight: 500;
    opacity: 0.92;
}

.dm-auth-flash.is-ok {
    background: #f7fee7;
    color: #021A54;
    border: 1px solid #FFCEE3;
}

.dm-auth-card {
    background: #fff;
    color: #0f172a;
    border-radius: 24px;
    padding: 32px 28px 26px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.dm-auth-title {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #0f172a;
}

.dm-auth-title span {
    color: #E05A9A;
}

.dm-auth-sub {
    margin: 8px 0 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #64748b;
}

.dm-auth-form {
    margin-top: 18px;
}

.dm-auth-field {
    display: block;
    margin-top: 14px;
}

.dm-auth-field input,
.dm-auth-field select {
    width: 100%;
    appearance: none;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    font: inherit;
    font-size: 0.95rem;
    color: #0f172a;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dm-auth-field input::placeholder {
    color: #94a3b8;
}

.dm-auth-field input:focus,
.dm-auth-field select:focus {
    outline: none;
    border-color: #FF85BB;
    box-shadow: 0 0 0 3px rgba(255, 133, 187, 0.28);
}

.dm-auth-field input:-webkit-autofill,
.dm-auth-field input:-webkit-autofill:hover,
.dm-auth-field input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: #0f172a;
    caret-color: #0f172a;
    transition: background-color 99999s ease-out 0s;
}

.dm-auth-password {
    position: relative;
}

.dm-auth-password input {
    padding-right: 88px;
}

.dm-auth-eye {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    border-radius: 999px;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
}

.dm-auth-eye-label {
    min-width: 32px;
    text-align: right;
}

.dm-auth-eye:hover {
    color: #334155;
}

.dm-auth-eye svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.dm-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    font-size: 0.88rem;
}

.dm-auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    cursor: pointer;
}

.dm-auth-remember input {
    width: 16px;
    height: 16px;
    accent-color: #FF85BB;
}

.dm-auth-forgot {
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
}

.dm-auth-forgot:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dm-auth-foot {
    margin-top: 18px;
    text-align: center;
    font-size: 0.88rem;
}

.dm-auth-foot a {
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
}

.dm-auth-foot a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dm-auth-support {
    margin: 16px 0 0;
    text-align: center;
    font-size: 0.86rem;
    color: #64748b;
}

.dm-auth-support a {
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
}

.dm-auth-support a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dm-auth-submit {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 14px 18px;
    border: 0;
    border-radius: 999px;
    background: #FF85BB;
    color: #021A54;
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(255, 133, 187, 0.28);
    transition: transform 0.18s ease, background 0.18s ease;
}

.dm-auth-submit:hover {
    background: #FF9AC8;
    transform: translateY(-1px);
}

.dm-auth-submit:disabled,
.dm-auth-submit.is-loading {
    opacity: 0.82;
    cursor: wait;
    transform: none;
}

.dm-auth-footer {
    margin-top: auto;
    padding: 20px 24px 28px;
    text-align: center;
    font-size: 13px;
    color: rgba(248, 250, 252, 0.55);
}

/* Legacy split-layout classes (unused) — keep legal page styles below */

.legal-page {
    font-family: var(--mm-font, 'Rubik', system-ui, sans-serif);
    margin: 0;
    min-height: 100vh;
    background: var(--mm-bg, #F5F5F5);
    color: var(--mm-text, #021A54);
    display: flex;
    flex-direction: column;
}

.legal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 32px;
    background: #fff;
    border-bottom: 1px solid var(--mm-border, #e2e8f0);
}

.legal-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.legal-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--mm-primary) 0%, var(--mm-primary-hover) 100%);
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.legal-brand-text {
    font-size: 16px;
    font-weight: 600;
}

.legal-brand-logo {
    max-height: 40px;
    max-width: 200px;
    object-fit: contain;
}

.legal-back {
    font-size: 14px;
    color: var(--mm-primary, #FF85BB);
    text-decoration: none;
    font-weight: 500;
}

.legal-back:hover { text-decoration: underline; }

.legal-main {
    flex: 1;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 32px 24px 48px;
    box-sizing: border-box;
}

.legal-card {
    background: #fff;
    border: 1px solid var(--mm-border, #e2e8f0);
    border-radius: var(--mm-radius-lg, 16px);
    padding: 36px 40px;
    box-shadow: var(--mm-shadow-sm);
}

.legal-card h1 {
    margin: 0 0 24px;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
}

.legal-body {
    font-size: 15px;
    line-height: 1.7;
    color: var(--mm-text-secondary, #334155);
}

.legal-body p { margin: 0 0 16px; }
.legal-body h2, .legal-body h3 { margin: 28px 0 12px; color: var(--mm-text, #021A54); }
.legal-body ul, .legal-body ol { margin: 0 0 16px; padding-left: 1.4rem; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--mm-primary, #FF85BB); }

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    justify-content: center;
    margin-top: 24px;
    font-size: 14px;
}

.legal-nav a {
    color: var(--mm-text-muted, #64748b);
    text-decoration: none;
}

.legal-nav a:hover {
    color: var(--mm-primary, #FF85BB);
}

.legal-foot {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: var(--mm-text-muted, #64748b);
    border-top: 1px solid var(--mm-border, #e2e8f0);
    background: #fff;
}

@media (max-width: 640px) {
    .legal-header { padding: 16px 20px; flex-wrap: wrap; }
    .legal-card { padding: 24px 20px; }
    .dm-auth-card { padding: 28px 22px 22px; }
    .dm-auth-main { padding: 12px 16px 28px; }
    .dm-auth-nav-inner { min-height: 64px; }
    .dm-auth-footer { padding: 14px 16px 18px; }
}
