/* Authentication pages: shared Rose & Berry palette, scoped to this layout. */
.dm-auth { margin: 0; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: 0 24px; background: #fff8f4; color: #342832; -webkit-font-smoothing: antialiased; }
.dm-auth *, .dm-auth *::before, .dm-auth *::after { box-sizing: border-box; }
.dm-auth a { text-decoration: none; }
.dm-auth a:focus-visible, .dm-auth button:focus-visible, .dm-auth summary:focus-visible { outline: 3px solid #c24766; outline-offset: 4px; }
.dm-auth-header, .dm-auth-footer { width: 100%; max-width: 1160px; margin: 0 auto; padding: clamp(10px, 2svh, 20px) 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.dm-auth-logo { width: 164px; height: auto; }
.dm-auth-back { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #6d5b65; }
.dm-auth-back svg { width: 16px; height: 16px; transform: rotate(180deg); }
.dm-auth-shell { align-self: center; display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 1160px; margin: 0 auto; background: white; border: 1px solid #e8d9dc; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 70px -40px #5a213540; }
.dm-auth-story { padding: clamp(24px, 3.8svh, 40px) 40px; display: flex; flex-direction: column; gap: clamp(18px, 2.8svh, 28px); background: #f7ecee; position: relative; min-width: 0; }
.dm-auth-story h1 { margin: 16px 0 12px; font-size: clamp(30px, 4.5svh, 40px); line-height: 1.2; font-weight: 600; letter-spacing: -1.7px; }
.dm-auth-story h1 em { font-family: Georgia, serif; font-weight: 400; color: #963d5a; }
.dm-auth-story-description { max-width: 440px; margin: 0; color: #6d5b65; font-size: 14px; line-height: 1.65; }
.dm-auth-benefits { display: grid; gap: 18px; }
.dm-auth-benefit { display: flex; gap: 15px; align-items: flex-start; }
.dm-auth-benefit-icon { display: grid; place-items: center; flex: 0 0 42px; height: 42px; background: #fff8f4; border: 1px solid #e9cdd3; border-radius: 13px; color: #963d5a; }
.dm-auth-benefit-icon svg { width: 20px; height: 20px; }
.dm-auth-benefit h2 { margin: 0 0 5px; font-size: 15px; font-weight: 700; }
.dm-auth-benefit p, .dm-auth-story-note p { margin: 0; color: #6d5b65; font-size: 13px; line-height: 1.7; }
.dm-auth-story-note { margin-top: auto; padding: 16px 0 0; border-top: 1px solid #dec8cf; display: flex; gap: 12px; align-items: flex-start; }
.dm-auth-story-note > svg { color: #963d5a; flex: 0 0 19px; margin-top: 2px; }
.dm-auth-story-note strong { display: block; margin-bottom: 5px; font-size: 13px; }
.dm-auth-form-panel { padding: clamp(20px, 3svh, 32px) 40px; min-width: 0; scroll-margin-top: 16px; display: flex; flex-direction: column; justify-content: center; }
.dm-auth-audience { padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #f5eeef; border-radius: 12px; margin-bottom: 20px; }
.dm-auth-audience a { min-height: 36px; display: flex; justify-content: center; align-items: center; gap: 8px; border-radius: 8px; color: #6d5b65; font-size: 13px; font-weight: 600; }
.dm-auth-audience a[aria-current] { background: white; color: #7c3049; box-shadow: 0 2px 6px #3428320a; }
.dm-auth-audience svg { width: 17px; height: 17px; }
.dm-auth-form-heading { margin-bottom: 18px; }
.dm-auth-form-heading h2 { margin: 0 0 6px; font-size: 25px; font-weight: 750; line-height: 1.2; }
.dm-auth-form-heading p { margin: 0; color: #6d5b65; font-size: 13px; line-height: 1.5; }
.dm-auth-form-panel form { display: grid; gap: 12px; }
.dm-auth-form-panel label { font-size: 13px; }
.dm-auth-form-panel input:not([type=checkbox]) { height: 44px; min-height: 44px; padding-top: 9px; padding-bottom: 9px; border-radius: 10px; font-size: 14px; }
.dm-auth-name-fields, .dm-auth-password-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; min-width: 0; }
.dm-auth-name-fields > div, .dm-auth-password-fields > div { min-width: 0; }
.dm-auth-password { position: relative; }
.dm-auth-password input { padding-right: 49px; }
.dm-auth-password-toggle { position: absolute; top: 27px; right: 4px; display: grid; place-items: center; width: 36px; height: 39px; border: 0; border-radius: 8px; background: transparent; color: #7d6b75; cursor: pointer; }
.dm-auth-password-toggle[aria-pressed=true] { color: #963d5a; background: #fbf0f3; }
.dm-auth-options { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.dm-auth-options label { display: flex; align-items: center; gap: 8px; cursor: pointer; color: #6d5b65; }
.dm-auth-options input { accent-color: #963d5a; width: 16px; height: 16px; }
.dm-auth-form-panel a:not(.dm-auth-audience a):not(.dm-auth-social a) { color: #963d5a; font-weight: 600; }
.dm-auth-form-panel a:hover { text-decoration: underline; }
.dm-auth-form-panel .dm-auth-submit { min-height: 44px; padding-top: 10px; padding-bottom: 10px; background: #963d5a; border-radius: 10px; font-size: 14px; font-weight: 700; box-shadow: 0 5px 14px #963d5a18; }
.dm-auth-form-panel .dm-auth-submit:hover { background: #7c3049; }
.dm-auth-submit svg { width: 17px; height: 17px; }
.dm-auth-divider { display: flex; align-items: center; gap: 13px; margin: 16px 0 12px; color: #7d6b75; font-size: 11px; }
.dm-auth-divider::before, .dm-auth-divider::after { content: ''; flex: 1; height: 1px; background: #e8d9dc; }
.dm-auth-social { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dm-auth-social a { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 40px; border: 1px solid #e8d9dc; border-radius: 10px; font-size: 13px; font-weight: 600; color: #342832; }
.dm-auth-social a:hover { background: #fff8f4; }
.dm-auth-switch { margin: 16px 0 0; text-align: center; font-size: 13px; color: #6d5b65; line-height: 1.5; }
.dm-auth-switch a { white-space: nowrap; }
.dm-auth-privacy { margin: 12px 0 0; color: #7d6b75; font-size: 11px; line-height: 1.5; text-align: center; }
.dm-auth-stepper { display: flex; flex-wrap: wrap; gap: 12px; margin: -4px 0 14px; padding: 0; list-style: none; color: #7d6b75; font-size: 11px; }
.dm-auth-stepper li { display: flex; align-items: center; gap: 6px; }
.dm-auth-stepper span { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: #f5eeef; font-size: 10px; }
.dm-auth-stepper [aria-current] { color: #7c3049; font-weight: 700; }
.dm-auth-stepper [aria-current] span { background: #963d5a; color: white; }
.dm-auth-status { margin-bottom: 12px; padding: 10px; border-radius: 10px; background: #f1f8f4; color: #1c5b3d; font-size: 13px; }
.dm-auth-photo { overflow: hidden; position: relative; border-radius: 80px 80px 16px 16px; margin-top: auto; }
.dm-auth-photo img { width: 100%; height: clamp(130px, 24svh, 220px); object-fit: cover; display: block; }
.dm-auth-photo-caption { position: absolute; inset: auto 0 0; display: flex; align-items: center; gap: 9px; padding: 40px 20px 20px; color: white; font-size: 14px; background: linear-gradient(transparent, #342832b3); }
.dm-auth-couple-benefits { display: flex; flex-wrap: wrap; gap: 12px 20px; color: #6d5b65; font-size: 11px; }
.dm-auth-couple-benefits span { display: flex; gap: 6px; align-items: center; }
.dm-auth-couple-benefits svg { width: 15px; height: 15px; color: #963d5a; }
.dm-auth-footer { padding-top: 12px; padding-bottom: 12px; color: #7d6b75; font-size: 11px; }
.dm-auth-footer a { color: inherit; }
.dm-auth-skip { position: absolute; top: -100px; left: 20px; z-index: 10; padding: 10px 16px; background: white; color: #7c3049; border-radius: 8px; }
.dm-auth-skip:focus { top: 10px; }
/* Business introduction: the same rose palette with a clearer editorial rhythm. */
.dm-auth-story--business {
    isolation: isolate;
    overflow: hidden;
    padding: 38px 42px 32px;
    gap: 28px;
    background: radial-gradient(ellipse at 0 0, #fff8f4 0, transparent 65%), #f7ecee;
    border-right: 1px solid #ecdde1;
}
.dm-auth-story-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: #963d5a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.7px;
    line-height: 1.5;
}
.dm-auth-story-eyebrow::before { content: ''; width: 22px; height: 1px; background: #b66b82; flex-shrink: 0; }
.dm-auth-story--business h1 { margin: 0 0 16px; font-size: 40px; line-height: 1.16; letter-spacing: -1.5px; }
.dm-auth-story--business h1 em { letter-spacing: -1.6px; }
.dm-auth-story--business .dm-auth-story-description { max-width: 395px; line-height: 1.75; }
.dm-auth-story--business .dm-auth-benefits { position: relative; margin: 0; padding: 0; list-style: none; gap: 22px; }
.dm-auth-story--business .dm-auth-benefits::before { content: ''; position: absolute; left: 22px; top: 24px; bottom: 24px; border-left: 1px solid #e2c9d1; z-index: -1; }
.dm-auth-story--business .dm-auth-benefit { gap: 16px; align-items: flex-start; }
.dm-auth-story--business .dm-auth-benefit-icon {
    flex-basis: 46px;
    height: 46px;
    background: #fffaf8;
    border-color: #ead5db;
    border-radius: 15px;
    box-shadow: 0 3px 8px #963d5a06;
}
.dm-auth-story--business .dm-auth-benefit-icon svg { stroke-width: 1.6; }
.dm-auth-story--business .dm-auth-benefit h2 { margin: 1px 0 4px; font-size: 15px; line-height: 1.4; font-weight: 650; }
.dm-auth-story--business .dm-auth-benefit p { max-width: 355px; font-size: 13px; line-height: 1.65; }
.dm-auth-story--business .dm-auth-story-note {
    align-items: center;
    padding: 16px;
    gap: 13px;
    border: 1px solid #e8d3da;
    border-radius: 16px;
    background: #fffaf880;
}
.dm-auth-story-note-icon { display: grid; place-items: center; flex: 0 0 36px; height: 36px; background: #963d5a; color: #fff8f4; border-radius: 11px; }
.dm-auth-story-note-icon svg { width: 18px; height: 18px; stroke-width: 1.6; }
.dm-auth-story--business .dm-auth-story-note strong { margin-bottom: 3px; font-size: 13px; font-weight: 650; }
.dm-auth-story--business .dm-auth-story-note p { font-size: 12px; line-height: 1.5; }
@media (max-width: 960px) {
    .dm-auth-story { padding-left: 26px; padding-right: 26px; }
    .dm-auth-form-panel { padding-left: 26px; padding-right: 26px; }
    .dm-auth-story h1 { font-size: 30px; }
    .dm-auth-benefit { gap: 10px; }
    .dm-auth-benefit h2 { font-size: 14px; }
    .dm-auth-story--business { padding: 30px 26px; gap: 24px; }
    .dm-auth-story--business h1 { font-size: 33px; }
    .dm-auth-story--business .dm-auth-benefit { gap: 12px; }
    .dm-auth-story--business .dm-auth-benefit h2 { font-size: 14px; }
    .dm-auth-story--business .dm-auth-story-note { padding: 13px; }
}
@media (max-width: 760px) {
    .dm-auth { padding: 0 16px; }
    .dm-auth-header { max-width: 440px; padding: 12px 0; }
    .dm-auth-logo { width: 140px; }
    .dm-auth-back { font-size: 11px; gap: 5px; }
    .dm-auth-shell { display: block; max-width: 440px; border-radius: 20px; }
    .dm-auth-story { display: none; }
    .dm-auth-form-panel { padding: 24px; }
    .dm-auth-audience { margin-bottom: 16px; }
    .dm-auth-form-heading h2 { font-size: 24px; }
    .dm-auth-footer { max-width: 440px; padding: 10px 0; gap: 12px; }
}
/* Fit laptop-height viewports by tightening the layout, never clipping fields. */
@media (max-height: 800px) {
    .dm-auth-header { padding-top: 10px; padding-bottom: 10px; }
    .dm-auth-form-panel { padding-top: 20px; padding-bottom: 20px; }
    .dm-auth-audience { margin-bottom: 14px; }
    .dm-auth-form-heading { margin-bottom: 14px; }
    .dm-auth--register .dm-auth-form-heading p { display: none; }
    .dm-auth-story { gap: 18px; padding-top: 24px; padding-bottom: 24px; }
    .dm-auth-story h1 { font-size: 30px; margin-top: 12px; }
    .dm-auth-benefits { gap: 14px; }
    .dm-auth-benefit p, .dm-auth-story-note p { font-size: 12px; line-height: 1.5; }
    .dm-auth-story--business { padding-top: 28px; padding-bottom: 26px; gap: 22px; }
    .dm-auth-story--business h1 { font-size: clamp(30px, 3.25vw, 36px); margin-top: 0; margin-bottom: 12px; }
    .dm-auth-story-eyebrow { margin-bottom: 14px; }
    .dm-auth-story--business .dm-auth-benefits { gap: 18px; }
}
@media (max-height: 680px) {
    .dm-auth { padding-left: 12px; padding-right: 12px; }
    .dm-auth-header { padding-top: 8px; padding-bottom: 8px; }
    .dm-auth-logo { width: 132px; }
    .dm-auth-footer { padding-top: 8px; padding-bottom: 8px; font-size: 10px; }
    .dm-auth-form-panel { padding: 16px 24px; }
    .dm-auth-audience { margin-bottom: 12px; padding: 3px; }
    .dm-auth-audience a { min-height: 32px; font-size: 12px; }
    .dm-auth-form-heading { margin-bottom: 12px; }
    .dm-auth-form-heading h2 { font-size: 22px; }
    .dm-auth-form-heading p { display: none; }
    .dm-auth-stepper { display: none; }
    .dm-auth-form-panel form { gap: 10px; }
    .dm-auth-form-panel label { margin-bottom: 4px; font-size: 12px; }
    .dm-auth-form-panel input:not([type=checkbox]) { min-height: 40px; height: 40px; padding: 7px 12px; }
    .dm-auth-password input:not([type=checkbox]) { padding-right: 40px; }
    .dm-auth-password-toggle { top: 23px; right: 2px; height: 36px; width: 34px; }
    .dm-auth-divider { margin-top: 12px; margin-bottom: 10px; }
    .dm-auth-switch { margin-top: 12px; font-size: 12px; }
    .dm-auth-privacy { margin-top: 10px; font-size: 10px; }
    .dm-auth-story { gap: 14px; padding-top: 20px; padding-bottom: 20px; }
    .dm-auth-story-description { font-size: 13px; line-height: 1.5; }
    .dm-auth-benefits { gap: 12px; }
    .dm-auth-benefit-icon { flex-basis: 34px; height: 34px; border-radius: 10px; }
    .dm-auth-story-note { padding-top: 12px; }
    .dm-auth-story--business { padding-top: 22px; padding-bottom: 22px; gap: 18px; }
    .dm-auth-story--business h1 { font-size: 32px; }
    .dm-auth-story-eyebrow { margin-bottom: 12px; }
    .dm-auth-story--business .dm-auth-benefits { gap: 14px; }
    .dm-auth-story--business .dm-auth-benefit-icon { flex-basis: 40px; height: 40px; border-radius: 12px; }
    .dm-auth-story--business .dm-auth-benefits::before { left: 19px; }
    .dm-auth-story--business .dm-auth-benefit p { font-size: 12px; }
}
@media (max-width: 380px) {
    .dm-auth-form-panel { padding-left: 16px; padding-right: 16px; }
    .dm-auth-name-fields, .dm-auth-password-fields { gap: 10px; }
    .dm-auth-form-heading h2 { font-size: 21px; }
    .dm-auth-password input { padding-left: 10px; padding-right: 38px; }
}
@media (max-height: 680px) and (max-width: 1000px) {
    .dm-auth-shell { display: block; max-width: 440px; }
    .dm-auth-story { display: none; }
    .dm-auth-header, .dm-auth-footer { max-width: 440px; }
}
@media (max-height: 600px) {
    .dm-auth-header { padding-top: 6px; padding-bottom: 6px; }
    .dm-auth-logo { width: 120px; }
    .dm-auth-footer { padding-top: 6px; padding-bottom: 6px; }
    .dm-auth-form-panel { padding-top: 12px; padding-bottom: 12px; }
    .dm-auth-audience { margin-bottom: 8px; }
    .dm-auth-form-heading { margin-bottom: 8px; }
    .dm-auth-form-heading h2 { font-size: 20px; }
    .dm-auth-form-panel form { gap: 8px; }
    .dm-auth-form-panel label { line-height: 1.2; }
    .dm-auth-form-panel input:not([type=checkbox]) { height: 38px; min-height: 38px; }
    .dm-auth-password-toggle { top: 20px; height: 34px; }
    .dm-auth-form-panel .dm-auth-submit { min-height: 40px; padding: 8px 10px; gap: 6px; font-size: 12px; }
    .dm-auth-divider { margin-top: 10px; margin-bottom: 8px; }
    .dm-auth-social a { min-height: 36px; }
    .dm-auth-privacy { margin-top: 8px; line-height: 1.4; }
    .dm-auth-switch { margin-top: 10px; font-size: 11px; line-height: 1.3; }
}
