/* Standalone auth-card page shell (login/register/verify/set-password/
   forgot-reset password) — no site header/footer, centered card on a
   soft background, matching the layout pattern ported from nri.dating.
   Relies on frontpage.css's :root tokens (--pink, --ink, --muted,
   --line, --soft), which is always loaded before this file. */

.dm-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background: #fafafa;
}

[data-bs-theme="dark"] .dm-auth-page {
    background: #10141c;
}

.dm-auth-standalone {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
    text-align: center;
}

[data-bs-theme="dark"] .dm-auth-standalone {
    background: #171c26;
    border-color: #354050;
    box-shadow: none;
}

.dm-auth-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    text-decoration: none;
}

.dm-auth-brand-mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
}

.dm-auth-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dm-auth-brand-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.03em;
    color: var(--ink);
}

.dm-auth-brand-name span {
    color: var(--pink);
}

.dm-auth-standalone .dm-page-title {
    font-size: 26px;
    margin-bottom: 6px;
}

.dm-auth-standalone > p {
    color: var(--muted);
    margin: 0 0 22px;
}

.dm-auth-standalone .dm-auth-form {
    text-align: left;
}

.dm-auth-standalone .dm-button {
    width: 100%;
}

.dm-password-wrap {
    position: relative;
    /* frontpage.css gives .dm-auth-form inputs margin-bottom:16px. If that
       stays on the input, the wrapper is 16px taller than the field and the
       toggle's top:50% lands below the field's centre. Move the spacing to
       the wrapper so the toggle centres on the input itself. */
    margin-bottom: 16px;
}

.dm-password-wrap input {
    padding-right: 44px !important;
    margin-bottom: 0 !important;
}

.dm-password-input::-ms-reveal,
.dm-password-input::-ms-clear {
    display: none;
}

.dm-password-input::-webkit-credentials-auto-fill-button {
    visibility: hidden;
}

.dm-password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #9ca3af;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.dm-password-toggle i {
    display: block;
    line-height: 1;
}

.dm-password-toggle:hover {
    color: var(--ink);
}

.dm-password-criteria {
    display: grid;
    gap: .4rem;
    margin: -8px 0 18px;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: .85rem;
    line-height: 1.35;
}

.dm-password-criteria li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}

.dm-password-rule-icon {
    display: inline-flex;
    flex: 0 0 1.1rem;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: .02rem;
    border-radius: 50%;
    background: #e2e8f0;
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    line-height: 1;
    transition: background-color .15s ease, color .15s ease;
}

.dm-password-criteria li.is-valid {
    color: #15803d;
}

.dm-password-criteria li.is-valid .dm-password-rule-icon {
    background: #22c55e;
}

[data-bs-theme="dark"] .dm-password-rule-icon {
    background: #3a4454;
}

[data-bs-theme="dark"] .dm-password-criteria li.is-valid {
    color: #4ade80;
}

@media (max-width: 520px) {
    .dm-auth-standalone {
        padding: 32px 24px;
    }
}
