/* Redeem design for the logged-out My Account pages (class-login-page.php). Everything is scoped to .rdm-auth. */

.rdm-auth {
  --ra-red: #EB1C24; --ra-red-d: #c3121a; --ra-ink: #111114; --ra-mut: #6b6b76; --ra-line: #e4e4ea; --ra-soft: #f6f6f8; --ra-ok: #12b76a;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: 1040px; min-height: 600px; margin: 10px auto 40px; padding: 12px;
  background: #fff; border-radius: 26px; box-shadow: 0 30px 80px rgba(17, 17, 20, .10); border: 1px solid #efeff3;
  color: var(--ra-ink); text-align: start;
}
.rdm-auth *, .rdm-auth *::before, .rdm-auth *::after { box-sizing: border-box; }

/* ── Art panel ─────────────────────────────────────────────────────────── */
.rdm-auth-art {
  position: relative; overflow: hidden; border-radius: 18px; padding: 26px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(160deg, #fff4f4 0%, #f7f7fa 55%, #fff 100%);
}
.rdm-auth-art::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(17,17,20,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(17,17,20,.045) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 70%); mask-image: linear-gradient(180deg, #000 10%, transparent 70%);
}
.rdm-auth-tiles { position: absolute; inset: 0 0 190px 0; }
.rdm-auth-tile {
  position: absolute; width: 34%; aspect-ratio: 1.6; border-radius: 16px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 18px 40px rgba(17,17,20,.18); animation: rdm-auth-float 7s ease-in-out infinite;
}
.rdm-auth-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.22), transparent 55%); }
.rdm-auth-tile svg { position: relative; z-index: 1; width: 62%; height: auto; max-height: 46%; }
.rdm-auth-tile:nth-child(1) { top: 8%;  left: 52%; transform: rotate(4deg);  animation-delay: -1s; }
.rdm-auth-tile:nth-child(2) { top: 20%; left: 10%; transform: rotate(-6deg); animation-delay: -3s; width: 36%; }
.rdm-auth-tile:nth-child(3) { top: 40%; left: 56%; transform: rotate(-3deg); animation-delay: -5s; }
.rdm-auth-tile:nth-child(4) { top: 52%; left: 16%; transform: rotate(5deg);  animation-delay: -2s; width: 32%; }
@keyframes rdm-auth-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .rdm-auth-tile { animation: none; } }

.rdm-auth-guide {
  position: relative; z-index: 1; background: rgba(255,255,255,.9); border: 1px solid var(--ra-line);
  border-radius: 16px; padding: 16px 18px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.rdm-auth-guide-title { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--ra-ink); text-transform: none; letter-spacing: 0; }
.rdm-auth-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rdm-auth-steps li { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; color: var(--ra-mut); }
.rdm-auth-steps li i {
  flex: 0 0 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--ra-line); background: #fff;
  display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11.5px; font-weight: 700;
}
.rdm-auth-steps li.now { color: var(--ra-ink); font-weight: 600; }
.rdm-auth-steps li.now i { background: var(--ra-red); border-color: var(--ra-red); color: #fff; }
.rdm-auth-steps li.ok i { background: var(--ra-ok); border-color: var(--ra-ok); color: #fff; }

/* ── Form side ─────────────────────────────────────────────────────────── */
.rdm-auth-main { min-width: 0; padding: 34px 44px; display: flex; flex-direction: column; justify-content: center; }
.rdm-auth-main > * { width: 100%; max-width: 380px; margin-inline: auto; }
.rdm-auth-main > .rdm-auth-logo { display: block; order: 99; width: 30px; max-width: 30px; height: 30px; margin: 26px auto 0; }
.rdm-auth-head { margin-bottom: 22px; }
.rdm-auth .rdm-auth-title { margin: 0 0 6px; font-size: 26px; line-height: 1.4; font-weight: 800; color: var(--ra-ink); text-transform: none; letter-spacing: -.3px; }
.rdm-auth .rdm-auth-sub { margin: 0; font-size: 13.5px; line-height: 1.8; color: var(--ra-mut); }

/* Woodmart's two-column login/register layout becomes one column, one form at a time. */
.rdm-auth .wd-registration-page { max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; background: none; }
.rdm-auth #customer_login { display: block; margin: 0; }
.rdm-auth #customer_login > .wd-col { width: 100%; max-width: 100%; flex: none; padding: 0; margin: 0; border: 0; }
.rdm-auth .col-register-text, .rdm-auth .wd-login-title { display: none !important; }
.rdm-auth .col-register { display: none !important; }
.rdm-auth.is-register .col-register { display: block !important; }
.rdm-auth.is-register .col-login { display: none !important; }
.rdm-auth .col-login, .rdm-auth .col-register { opacity: 1 !important; visibility: visible !important; transform: none !important; position: static !important; }

/* Fields */
.rdm-auth form { margin: 0; padding: 0; border: 0; }
.rdm-auth .form-row { margin: 0 0 16px; padding: 0; width: 100% !important; float: none !important; }
.rdm-auth label { display: block; margin: 0 0 7px; font-size: 12.5px; font-weight: 600; color: var(--ra-ink); }
.rdm-auth label .required { color: var(--ra-red); }
.rdm-auth input.input-text, .rdm-auth input[type="email"], .rdm-auth input[type="password"], .rdm-auth input[type="text"]:not(.sotp-single-input) {
  width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--ra-line); border-radius: 12px; background: #fff;
  font-size: 14.5px; color: var(--ra-ink); box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.rdm-auth input.input-text:focus, .rdm-auth input[type="email"]:focus, .rdm-auth input[type="password"]:focus, .rdm-auth input[type="text"]:focus {
  border-color: var(--ra-ink); box-shadow: 0 0 0 4px rgba(17,17,20,.07); outline: 0;
}
.rdm-auth input[type="email"], .rdm-auth #username, .rdm-auth #user_login { direction: ltr; text-align: left; }
.rdm-auth .password-input { display: block; position: relative; }
.rdm-auth .show-password-input { inset-inline-end: 12px; }

/* Buttons */
.rdm-auth button[type="submit"], .rdm-auth .woocommerce-Button, .rdm-auth .sotp-send-btn {
  width: 100%; height: 50px; min-height: 50px; margin: 0; padding: 0 16px; border: 0; border-radius: 12px;
  background: var(--ra-red) !important; color: #fff !important; font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: 0;
  box-shadow: none; cursor: pointer; transition: background .15s;
}
.rdm-auth button[type="submit"]:hover, .rdm-auth .woocommerce-Button:hover, .rdm-auth .sotp-send-btn:hover { background: var(--ra-red-d) !important; }
.rdm-auth .rdm-auth-outline, .rdm-auth .login-goo-link, .rdm-auth .sotp-to-code-row a {
  display: flex !important; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; margin: 0; padding: 0 16px;
  border: 1.5px solid var(--ra-line) !important; border-radius: 12px; background: #fff !important; color: var(--ra-ink) !important;
  font-size: 14.5px; font-weight: 600; text-transform: none; text-decoration: none !important; box-shadow: none;
}
.rdm-auth .rdm-auth-outline:hover, .rdm-auth .login-goo-link:hover, .rdm-auth .sotp-to-code-row a:hover { background: var(--ra-soft) !important; }
.rdm-auth .login-goo-link::before {
  content: ""; width: 18px; height: 18px; flex: 0 0 18px; position: static; margin: 0; border: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.6 20.5H42V20H24v8h11.3C33.7 32.7 29.2 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.8 1.2 7.9 3l5.7-5.7C34 6.1 29.3 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.3-.1-2.4-.4-3.5z'/%3E%3Cpath fill='%23FF3D00' d='M6.3 14.7l6.6 4.8C14.7 15.1 19 12 24 12c3.1 0 5.8 1.2 7.9 3l5.7-5.7C34 6.1 29.3 4 24 4 16.3 4 9.7 8.3 6.3 14.7z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.2 0 9.9-2 13.4-5.2l-6.2-5.2C29.2 35.1 26.7 36 24 36c-5.2 0-9.6-3.3-11.3-7.9l-6.5 5C9.5 39.6 16.2 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.6 20.5H42V20H24v8h11.3c-.8 2.2-2.2 4.2-4.1 5.6l6.2 5.2C37 39.2 44 34 44 24c0-1.3-.1-2.4-.4-3.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rdm-auth .sotp-to-code-row a::before {
  content: ""; width: 18px; height: 18px; flex: 0 0 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111114' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Login form: fields, remember/forgot, Turnstile, button, "or", code button, Google, switch to register. */
.rdm-auth form.woocommerce-form-login:not(.hidden-form) { display: flex !important; flex-direction: column; }
.rdm-auth .woocommerce-form-login > * { order: 10; }
.rdm-auth .woocommerce-form-login > .sotp-code-login { order: 1; }
.rdm-auth .woocommerce-form-login > .form-row-username { order: 2; }
.rdm-auth .woocommerce-form-login > .form-row-password { order: 3; }
.rdm-auth .woocommerce-form-login > .login-form-footer { order: 4; }
.rdm-auth .woocommerce-form-login > .cf-turnstile, .rdm-auth .woocommerce-form-login > .cf-turnstile-br { order: 5; }
.rdm-auth .woocommerce-form-login > .form-row-btn { order: 6; }
.rdm-auth .woocommerce-form-login > .wd-login-divider { order: 7; }
.rdm-auth .woocommerce-form-login > .sotp-to-code-row { order: 8; }
.rdm-auth .woocommerce-form-login > .wd-social-login, .rdm-auth .woocommerce-form-login > .wfls-passkey-container { order: 9; }
.rdm-auth .woocommerce-form-login > .rdm-auth-switch { order: 20; }
.rdm-auth .cf-turnstile-br { display: none; }
.rdm-auth .cf-turnstile { margin: 0 0 14px; }

.rdm-auth .login-form-footer {
  display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between;
  margin: -4px 0 20px; font-size: 13px;
}
.rdm-auth .login-form-footer .lost_password { color: var(--ra-red); font-weight: 600; text-decoration: none; }
.rdm-auth .login-form-footer label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; color: #3b3b44; }
.rdm-auth .login-form-footer input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--ra-red); }
.rdm-auth .wd-login-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 !important; color: #a3a3ad; font-size: 12px; text-align: center; }
.rdm-auth .wd-login-divider::before, .rdm-auth .wd-login-divider::after { content: ""; flex: 1; height: 1px; background: var(--ra-line); border: 0; position: static; width: auto; }
.rdm-auth .wd-login-divider span { padding: 0; background: none; }
.rdm-auth .sotp-to-code-row { margin: 0 0 10px; }
.rdm-auth .wd-social-login { margin: 0; display: block; }
.rdm-auth .rdm-auth-switch { margin: 22px 0 0; text-align: center; font-size: 13px; color: var(--ra-mut); }
.rdm-auth .rdm-auth-switch a { color: var(--ra-red); font-weight: 600; text-decoration: none; }
.rdm-auth .sotp-login-switch { margin: 14px 0 0; text-align: center; }
.rdm-auth .sotp-login-switch a { color: var(--ra-ink); font-weight: 600; font-size: 13px; }
.rdm-auth .woocommerce-form-login.sotp-mode-code .cf-turnstile { display: none !important; }
/* Code mode (the first screen): the small "password instead" link becomes an outline button under "or". */
.rdm-auth .woocommerce-form-login .sotp-code-login > .sotp-login-switch { display: none !important; }
.rdm-auth form.woocommerce-form-login > p.rdm-to-pw-row { display: none; order: 8; margin: 0 0 12px !important; padding: 0; }
.rdm-auth.is-ready form.woocommerce-form-login.sotp-mode-code:not(.sotp-tfa-step) > p.rdm-to-pw-row { display: block; }
.rdm-auth form.woocommerce-form-login .rdm-to-pw {
  display: flex !important; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 50px; margin: 0; padding: 0 16px;
  border: 1.5px solid var(--ra-line); border-radius: 12px; background: #fff; color: var(--ra-ink) !important;
  font-size: 14.5px; font-weight: 600; text-decoration: none !important;
}
.rdm-auth form.woocommerce-form-login .rdm-to-pw:hover { background: var(--ra-soft); }
.rdm-auth form.woocommerce-form-login .rdm-to-pw::before {
  content: ""; width: 18px; height: 18px; flex: 0 0 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111114' stroke-width='2'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rdm-auth .woocommerce-form-login.sotp-tfa-step .wd-login-divider,
.rdm-auth .woocommerce-form-login.sotp-tfa-step .wd-social-login { display: none !important; }

/* Register form */
/* "Create account" only once the email is verified (the server refuses it before anyway); without JS it stays. */
.rdm-auth.is-ready .woocommerce-form-register:not(.rdm-verified) .form-row-btn { display: none; }
.rdm-auth .woocommerce-form-register > p:not([class]) { margin: -6px 0 14px; font-size: 12px; color: var(--ra-mut); }
.rdm-auth .woocommerce-privacy-policy-text p { margin: 0 0 14px; font-size: 11.5px; line-height: 1.8; color: var(--ra-mut); }
.rdm-auth .woocommerce-privacy-policy-text a { color: var(--ra-red); }

/* ── OTP block inside the card ─────────────────────────────────────────── */
.rdm-auth .sotp-block { margin: 0 0 16px; padding: 0; border: 0; background: none; box-shadow: none; }
.rdm-auth .sotp-send-row { display: block; margin: 0; }
.rdm-auth .sotp-send-status { display: block; margin-top: 8px; font-size: 12.5px; text-align: center; }
.rdm-auth .sotp-verify-panel { margin: 0; padding: 0; border: 0; background: none; }
.rdm-auth .sotp-timer-row { display: flex; justify-content: center; gap: 6px; margin: 0 0 10px; font-size: 12px; color: var(--ra-mut); }
.rdm-auth .sotp-digit-inputs { display: block; margin: 0 0 10px; }
.rdm-auth input.sotp-single-input {
  width: 100%; height: 60px; padding: 0 12px; border: 1.5px solid var(--ra-line); border-radius: 12px; background: #fff;
  direction: ltr; text-align: center; font-size: 26px; font-weight: 700; letter-spacing: .55em; text-indent: .55em; color: var(--ra-ink);
}
.rdm-auth input.sotp-single-input::placeholder { font-size: 14px; font-weight: 400; letter-spacing: 0; text-indent: 0; color: #a3a3ad; }
.rdm-auth input.sotp-single-input:focus { border-color: var(--ra-ink); box-shadow: 0 0 0 4px rgba(17,17,20,.07); outline: 0; }
.rdm-auth .sotp-digit-inputs.shake input { border-color: var(--ra-red); background: #fff1f1; }
/* The code is checked as soon as it is complete (sotp-frontend.js clicks this button itself). */
.rdm-auth .sotp-verify-btn { display: none !important; }
.rdm-auth .sotp-action-row { display: flex; justify-content: center; margin: 0; }
.rdm-auth .sotp-resend-btn {
  width: auto; height: auto; min-height: 0; padding: 4px 6px; border: 0; background: none !important; box-shadow: none;
  color: var(--ra-red) !important; font-size: 12.5px; font-weight: 600; text-transform: none;
}
.rdm-auth .sotp-resend-btn:disabled { color: var(--ra-mut) !important; opacity: .8; }
.rdm-auth .sotp-verify-message { margin: 8px 0 0; font-size: 12.5px; text-align: center; }
.rdm-auth .sotp-verified-badge { justify-content: center; gap: 6px; margin: 0; padding: 10px; border-radius: 12px; background: #ecfdf3; color: var(--ra-ok); font-weight: 600; font-size: 13px; }

/* Two-step code after the email code (sotp-frontend.js adds .sotp-tfa-step and the .sotp-tfa panel). */
.rdm-auth .sotp-tfa-step .sotp-code-login > .form-row,
.rdm-auth .sotp-tfa-step .sotp-code-login > .sotp-block,
.rdm-auth .sotp-tfa-step .sotp-code-login > .sotp-login-switch { display: none !important; }

/* ── Lost / reset password ─────────────────────────────────────────────── */
.rdm-auth .lost_reset_password > p:first-child { display: none; }
.rdm-auth .lost_reset_password .clear { display: none; }
.rdm-auth .rdm-auth-meter { display: flex; gap: 5px; margin: 8px 0 0; }
.rdm-auth .rdm-auth-meter i { flex: 1; height: 4px; border-radius: 4px; background: var(--ra-line); }
.rdm-auth .rdm-auth-meter.s1 i:nth-child(1) { background: #f04438; }
.rdm-auth .rdm-auth-meter.s2 i:nth-child(-n+2) { background: #f79009; }
.rdm-auth .rdm-auth-meter.s3 i:nth-child(-n+3) { background: var(--ra-ok); }
.rdm-auth .woocommerce-password-strength { margin-top: 8px; padding: 6px 10px; border-radius: 8px; font-size: 12px; }
.rdm-auth .woocommerce-password-hint { display: block; margin-top: 6px; font-size: 11.5px; color: var(--ra-mut); }
.rdm-auth[data-screen="sent"] .rdm-auth-main > p:not(.rdm-auth-alt) { font-size: 13px; color: var(--ra-mut); line-height: 1.8; }
.rdm-auth .rdm-auth-alt { margin-top: 18px; }

/* Notices moved into the card */
.rdm-auth .rdm-auth-main > .woocommerce-notices-wrapper ul,
.rdm-auth .rdm-auth-main > .woocommerce-error,
.rdm-auth .rdm-auth-main > .woocommerce-message,
.rdm-auth .rdm-auth-main > .woocommerce-info,
.rdm-auth .rdm-auth-main > .woocommerce-notices-wrapper > div { margin: 0 0 18px; border-radius: 12px; font-size: 13px; }

/* ── Phones / tablets: the form alone ──────────────────────────────────── */
@media (max-width: 860px) {
  .rdm-auth { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 0; border-radius: 22px; margin: 0 auto 30px; }
  .rdm-auth-art { display: none; }
  .rdm-auth-main { padding: 30px 20px; }
  .rdm-auth .rdm-auth-title { font-size: 23px; }
}

/* ── Code button + Google: same size, same corners, a clear gap (2.3.4) ─── */
.rdm-auth form.woocommerce-form-login > p.sotp-to-code-row { margin: 0 0 12px !important; padding: 0; }
.rdm-auth form.woocommerce-form-login > .wd-social-login { margin: 0 !important; padding: 0; display: block; }
.rdm-auth form.woocommerce-form-login .sotp-to-code-row a,
.rdm-auth form.woocommerce-form-login .wd-social-login a.login-goo-link {
  position: relative; display: flex !important; align-items: center; justify-content: center; gap: 10px;
  width: 100% !important; height: 50px !important; min-height: 50px !important; margin: 0 !important; padding: 0 16px !important;
  border: 1.5px solid var(--ra-line) !important; border-radius: 12px !important; box-shadow: none !important;
  background: #fff !important; color: var(--ra-ink) !important; font-size: 14.5px !important; font-weight: 600 !important; line-height: 1 !important;
}
.rdm-auth form.woocommerce-form-login .wd-social-login a.login-goo-link::before {
  position: static !important; inset: auto !important; transform: none !important; margin: 0 !important;
  width: 18px !important; height: 18px !important; flex: 0 0 18px; font-size: 0 !important; border: 0 !important; border-radius: 0 !important;
  background-color: transparent !important;
}
.rdm-auth form.woocommerce-form-login .wd-social-login a.login-goo-link::after { display: none !important; }

/* Tiles swap with each step */
.rdm-auth-tiles { transition: opacity .25s ease; }
.rdm-auth-tiles.is-swapping { opacity: 0; }

/* Sign-in result note (sotp-frontend.js) above everything in the form */
.rdm-auth form.woocommerce-form-login > .sotp-login-note { order: 0; margin: 0 0 16px; border-radius: 12px; }

/* Google -> app code inside the card: the card header already says it */
.rdm-auth .sotp-social-tfa { max-width: none; margin: 0; }
.rdm-auth .sotp-social-tfa .sotp-stfa-title, .rdm-auth .sotp-social-tfa .sotp-stfa-sub { display: none; }
.rdm-auth .sotp-social-tfa input.sotp-tfa-input { height: 60px; font-size: 26px; }

/* the WooCommerce columns block lost its centring (theme .col2-set margin reset): align the form with the title and notices (owner 2026-11-30) */
.rdm-auth .rdm-auth-main > .u-columns,
.rdm-auth .rdm-auth-main > #customer_login { margin-inline: auto; }
