/* Edit these variables to customize the account card's palette and width. */
.safir-auth {
    --auth-wine: #830d20;
    --auth-blush: #f3dce0;
    --auth-ink: #35282b;
    --auth-muted: #806f74;
    --auth-width: 625px;
    direction: rtl;
    box-sizing: border-box;
    width: 100%;
    max-width: var(--auth-width);
    margin: 44px auto 72px;
    padding: 44px 42px 40px;
    border: 1px solid var(--auth-blush);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 56px #830d2008;
    color: var(--auth-ink);
    text-align: right;
}
.safir-auth *, .safir-auth *::before, .safir-auth *::after { box-sizing: border-box; }
.safir-auth [hidden] { display: none !important; }
.safir-auth__header { text-align: center; margin-bottom: 30px; }
.safir-auth__eyebrow { display: block; color: var(--auth-wine); font-size: 10px; letter-spacing: 4px; margin-bottom: 22px; direction: ltr; }
.safir-auth .safir-auth__header h1 { font-size: clamp(24px, 4vw, 32px); font-weight: 800; color: var(--auth-wine); line-height: 1.6; margin: 0 0 10px; }
.safir-auth .safir-auth__header p { font-size: 14px; color: var(--auth-muted); line-height: 1.9; margin: 0; }
.safir-auth__tabs { display: flex; padding: 6px; gap: 6px; margin-bottom: 30px; background: #fbf4f5; border: 1px solid var(--auth-blush); border-radius: 11px; }
.safir-auth__tabs button { flex: 1; min-height: 50px; border: 0; border-radius: 7px; background: transparent; color: var(--auth-muted); font: inherit; font-weight: 700; cursor: pointer; }
.safir-auth__tabs button[aria-selected="true"] { background: var(--auth-wine); color: #fff; box-shadow: 0 3px 8px #830d201a; }
.safir-auth .safir-auth__form-title { font-size: 20px; color: var(--auth-wine); margin: 24px 0; }
.safir-auth--enhanced .safir-auth__form-title { display: none; }
.woocommerce .safir-auth form.login, .woocommerce .safir-auth form.register { border: 0; padding: 0; margin: 0; border-radius: 0; text-align: right; }
.safir-auth form .form-row { display: block; float: none; width: 100%; margin: 0 0 22px; padding: 0; }
.safir-auth form .form-row label { display: block; color: var(--auth-ink); font-size: 14px; font-weight: 500; margin-bottom: 10px; line-height: 1.8; }
.safir-auth form .form-row label span { color: var(--auth-wine); }
.safir-auth form input[type="text"], .safir-auth form input[type="email"], .safir-auth form input[type="password"] { width: 100%; min-height: 58px; padding: 12px 16px; font: inherit; font-size: 15px; color: var(--auth-ink); background: #fdfafb; border: 1px solid #e8d9dd; border-radius: 8px; box-shadow: none; }
.safir-auth form input[type="email"] { direction: ltr; text-align: left; }
.safir-auth input:focus { outline: 0; border-color: var(--auth-wine); box-shadow: 0 0 0 3px #830d2012; }
.safir-auth .password-input { display: block; width: 100%; }
.safir-auth .show-password-input { left: 14px; right: auto; top: 17px; }
.safir-auth__options { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin: 0 0 26px; font-size: 13px; }
.safir-auth .safir-auth__remember { display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; }
.safir-auth input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--auth-wine); }
.safir-auth a { color: var(--auth-wine); text-decoration: none; }
.safir-auth a:hover { text-decoration: underline; }
.safir-auth .safir-auth__submit { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 66px; margin-top: 20px; padding: 16px 22px; border: 0; border-radius: 8px; background: var(--auth-wine); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .2s; }
.safir-auth .safir-auth__submit:hover { background: #660a19; }
.safir-auth button:focus-visible, .safir-auth a:focus-visible { outline: 3px solid #b36676; outline-offset: 3px; }
.safir-auth__hint, .safir-auth .woocommerce-privacy-policy-text { font-size: 13px; color: var(--auth-muted); line-height: 2; }
@media (max-width: 575px) {
    .safir-auth { margin: 24px auto 40px; padding: 30px 20px; border-radius: 16px; }
    .safir-auth__header { margin-bottom: 24px; }
    .safir-auth__options { font-size: 12px; }
    .safir-auth .safir-auth__submit { min-height: 58px; font-size: 14px; }
}
