.auth-wrap {
  width: 100%;
  max-width: 520px;
  margin: 58px auto;
  padding: 0 16px;
}

.auth-wrap--success {
  max-width: 560px;
}

.auth-card {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(11, 12, 14, .10);
  border-radius: 10px;
  padding: 24px;
  box-sizing: border-box;
}

.auth-title {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.2;
  color: #111827;
}

.auth-intro {
  margin: -4px 0 16px;
  color: rgba(17, 24, 39, .70);
}

.auth-row {
  margin: 0 0 14px;
}

.auth-label {
  display: block;
  margin: 0 0 6px;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
}

.auth-input {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  border: 1px solid rgba(17, 24, 39, .16);
  border-radius: 10px;
  padding: 0 13px;
  color: #111827;
  background: #fff;
  font: inherit;
}

.auth-input:focus {
  outline: none;
  border-color: rgba(76, 29, 149, .48);
  box-shadow: 0 0 0 3px rgba(76, 29, 149, .10);
}

.auth-input.invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .10);
}

.auth-pw {
  position: relative;
}

.auth-pw .auth-input {
  padding-right: 82px;
}
/* =========================================================
   Auth password validation indicators
   Register / Reset password
   ========================================================= */

.auth-pw [data-password-primary-indicator],
.auth-pw [data-password-confirm-indicator]{
  position:absolute;
  top:50%;
  right:12px;
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transform:translateY(-50%);
  pointer-events:none;
  font-size:16px;
  line-height:1;
  font-weight:700;
  opacity:0;
}

.auth-pw [data-password-primary-indicator][data-state="valid"],
.auth-pw [data-password-confirm-indicator][data-state="valid"],
.auth-pw [data-password-primary-indicator].is-password-valid,
.auth-pw [data-password-confirm-indicator].is-password-valid{
  opacity:1;
  color:#16a34a;
}

.auth-pw [data-password-primary-indicator][data-state="invalid"],
.auth-pw [data-password-confirm-indicator][data-state="invalid"],
.auth-pw [data-password-primary-indicator].is-password-invalid,
.auth-pw [data-password-confirm-indicator].is-password-invalid,
.auth-pw [data-password-primary-indicator].is-password-mismatch,
.auth-pw [data-password-confirm-indicator].is-password-mismatch{
  opacity:1;
  color:#ed1a38;
}

.auth-pw [data-password-primary-indicator][data-state="valid"]::before,
.auth-pw [data-password-confirm-indicator][data-state="valid"]::before,
.auth-pw [data-password-primary-indicator].is-password-valid::before,
.auth-pw [data-password-confirm-indicator].is-password-valid::before{
  content:"✓";
}

.auth-pw [data-password-primary-indicator][data-state="invalid"]::before,
.auth-pw [data-password-confirm-indicator][data-state="invalid"]::before,
.auth-pw [data-password-primary-indicator].is-password-invalid::before,
.auth-pw [data-password-confirm-indicator].is-password-invalid::before,
.auth-pw [data-password-primary-indicator].is-password-mismatch::before,
.auth-pw [data-password-confirm-indicator].is-password-mismatch::before{
  content:"!";
}

[data-password-match-message]{
  display:block;
  min-height:18px;
  margin:6px 0 0;
  color:#ed1a38;
  font-size:13px;
  line-height:1.35;
  font-weight:500;
}

[data-password-match-message][hidden],
[data-password-match-message]:empty{
  display:none;
}
.auth-eye{
  position:absolute;
  top:0;
  right:36px;
  bottom:0;
  width:32px;
  height:32px;
  margin:auto 0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:0;
  background:transparent;
  color:#6b7280;
  cursor:pointer;
  box-shadow:none;
  transform:none;
  padding:0;
  transition:color .14s ease;
}

.auth-eye:hover,
.auth-eye:focus-visible{
  background:transparent;
  border:0;
  box-shadow:none;
  color:#111827;
  outline:none;
}

.auth-eye:active{
  transform:none;
}

.auth-eye.is-on{
  color:#111827;
  background:transparent;
  border:0;
  box-shadow:none;
}

.auth-eye .material-symbols-outlined{
  font-size:20px;
  line-height:1;
  font-variation-settings:'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 20;
}

.auth-submit {
  width: 100%;
  min-height: 44px;
  border: 1px solid #2e1065;
  border-radius: 10px;
  background: #2e1065;
  color: #fff;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .01em;
  text-align: center;
  cursor: pointer;
  filter: none;
  box-shadow: none;
  transform: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.auth-submit:hover,
.auth-submit:focus-visible {
  border-color: #3b1682;
  background: #3b1682;
  color: #fff;
  filter: none;
  box-shadow: none;
  transform: none;
}

.auth-links,
.auth-switch {
  text-align: center;
}

.auth-links {
  margin-top: 14px;
}

.auth-switch {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(17, 24, 39, .08);
  color: rgba(17, 24, 39, .68);
}

.auth-link {
  color: #4c1d95;
  font-weight: 700;
  text-decoration: none;
}

.auth-link:hover,
.auth-link:focus-visible {
  color: #2e1065;
  text-decoration: underline;
}

.auth-error,
.auth-notice,
.auth-safe {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}

.auth-error {
  margin-top: 14px;
  color: #7f1d1d;
  background: #fef2f2;
  border: 1px solid rgba(220, 38, 38, .18);
}

.auth-notice {
  margin-top: 14px;
  color: #14532d;
  background: #f0fdf4;
  border: 1px solid rgba(22, 163, 74, .18);
}

.auth-safe {
  margin-top: 12px;
  color: rgba(17, 24, 39, .64);
  background: #f9fafb;
  border: 1px solid rgba(17, 24, 39, .08);
}

.auth-error-action {
  margin-top: 10px;
  text-align: center;
}

.auth-email {
  color: #111827;
  font-weight: 700;
}

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

.auth-code-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 12px;
}

.auth-code-box{
  width:52px;
  height:52px;
  box-sizing:border-box;
  border:2px solid rgba(109,40,217,.78);
  border-radius:999px;
  background:#fff;
  color:#111827;
  text-align:center;
  font-size:22px;
  line-height:1;
  font-weight:700;
  outline:none;
}

.auth-code-box:focus{
  border-color:#6d28d9;
  box-shadow:0 0 0 4px rgba(109,40,217,.12);
}

.auth-code-box.invalid{
  border-color:rgba(237,26,56,.72);
  box-shadow:0 0 0 4px rgba(237,26,56,.10);
}

.auth-code-form.is-code-complete:not(.is-code-error) .auth-code-box{
  border-color:rgba(22,163,74,.70);
}

.auth-countdown {
  margin: 0 0 16px;
  color: rgba(17, 24, 39, .68);
  font-size: 13px;
  text-align: center;
}

.auth-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin:22px 0 0;
  flex-wrap:wrap;
}

.auth-actions .auth-submit,
.auth-actions .auth-submit--link,
.auth-actions .auth-link--button{
  flex:0 0 238px;
  width:238px;
  min-width:238px;
  max-width:238px;
  height:44px;
  min-height:44px;
  margin:0;
  box-sizing:border-box;
  border-radius:10px;
  padding:0 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  line-height:1.15;
  font-weight:600;
  letter-spacing:.01em;
  text-align:center;
  text-decoration:none;
  vertical-align:top;
  box-shadow:none;
  transform:none;
  transition:background-color .14s ease, border-color .14s ease, color .14s ease;
}

.auth-actions .auth-submit,
.auth-actions .auth-submit--link{
  border:1px solid #2e1065;
  background:#2e1065;
  color:#fff;
}

.auth-actions .auth-submit:hover,
.auth-actions .auth-submit:focus-visible,
.auth-actions .auth-submit--link:hover,
.auth-actions .auth-submit--link:focus-visible{
  border-color:#3b1682;
  background:#3b1682;
  color:#fff;
  box-shadow:none;
  transform:none;
}

.auth-actions .auth-link--button{
  border:1px solid #d1d5db;
  background:#fff;
  color:#2e1065;
}

.auth-actions .auth-link--button:hover,
.auth-actions .auth-link--button:focus-visible{
  border-color:#c4b5fd;
  background:#f9fafb;
  color:#2e1065;
  text-decoration:none;
  box-shadow:none;
  transform:none;
}

.auth-success {
  text-align: center;
}

.auth-success__title{
  margin:0 0 12px;
  font-size:28px;
  font-weight:700;
  line-height:1.15;
  letter-spacing:0;
  text-align:center;
  color:#111827;
  background:none;
  -webkit-background-clip:initial;
  background-clip:initial;
}

.auth-success__message{
  margin:0 0 10px;
  max-width:100%;
  font-size:clamp(18px, 2.1vw, 22px);
  font-weight:700;
  line-height:1.12;
  letter-spacing:.018em;
  text-align:center;
  text-transform:uppercase;
  white-space:nowrap;
  font-stretch:normal;
  background:linear-gradient(90deg, #2e1065 0%, #6d28d9 46%, #ed1a38 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.auth-success__countdown {
  margin: 0 0 10px;
  line-height: 1.55;
}

.auth-success__countdown {
  color: #6b7280;
}

.auth-success__image {
  display: block;
  width: 100%;
  max-width: 130px;
  height: auto;
  margin: 18px auto 4px;
  object-fit: contain;
}

.auth-success__actions {
  gap: 12px;
  margin-top: 18px;
}

.auth-success .auth-submit,
.auth-success .auth-link--button{
  min-height:44px;
  border-radius:10px;
  padding:0 18px;
  font-size:14px;
  line-height:1.15;
  font-weight:600;
  letter-spacing:.01em;
  text-align:center;
  box-shadow:none;
  transform:none;
  transition:background-color .14s ease, border-color .14s ease, color .14s ease;
}

/* Primary success action */
.auth-success .auth-submit{
  border:1px solid #2e1065;
  background:#2e1065;
  color:#fff;
}

.auth-success .auth-submit:hover,
.auth-success .auth-submit:focus-visible{
  border-color:#3b1682;
  background:#3b1682;
  color:#fff;
  box-shadow:none;
  transform:none;
}

/* Secondary success action */
.auth-success .auth-link--button{
  border:1px solid rgba(46,16,101,.24);
  background:#fff;
  color:#2e1065;
}

.auth-success .auth-link--button:hover,
.auth-success .auth-link--button:focus-visible{
  border-color:#c4b5fd;
  background:#f9fafb;
  color:#2e1065;
  box-shadow:none;
  transform:none;
}

.auth-success-copy {
  margin: 0 0 10px;
  color: #374151;
  line-height: 1.55;
}

.auth-success-image {
  display: block;
  width: 100%;
  max-width: 130px;
  height: auto;
  margin: 18px auto 4px;
  object-fit: contain;
}

.auth-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;
}

.auth-row-grid2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
/* =========================================================
   Auth mailbox shortcut
   ========================================================= */

.auth-mail-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin:0 0 18px;
}

.auth-mail-row__copy{
  flex:1 1 auto;
  min-width:0;
  margin:0;
}

.auth-mail-row__copy .auth-intro,
.auth-mail-row .auth-intro{
  margin:0;
}

.auth-mailbox-shortcuts{
  flex:0 0 auto;
  min-width:150px;
  text-align:right;
}

.auth-mailbox-shortcuts__title{
  margin:0 0 4px;
  color:#6b7280;
  font-size:13px;
  line-height:1.35;
  font-weight:400;
}

.auth-mailbox-shortcut{
  display:inline;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#4c1d95;
  font-size:14px;
  line-height:1.35;
  font-weight:700;
  text-decoration:none;
  box-shadow:none;
  transform:none;
}

.auth-mailbox-shortcut:hover,
.auth-mailbox-shortcut:focus-visible{
  background:transparent;
  color:#2e1065;
  text-decoration:underline;
  box-shadow:none;
  transform:none;
  outline:none;
}

@media (max-width:520px){
  .auth-mail-row{
    display:block;
  }

  .auth-mailbox-shortcuts{
    margin-top:10px;
    text-align:left;
  }
}
@media (min-width: 640px) {
  .auth-row-grid2 {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .auth-wrap {
    margin: 32px auto;
    padding: 0 12px;
  }

  .auth-card {
    padding: 20px 16px;
  }

  .auth-code-row {
    gap: 8px;
  }

.auth-code-box{
  width:46px;
  height:46px;
  font-size:20px;
}

  .auth-success__title {
    font-size: 24px;
  }

  .auth-success__image,
  .auth-success-image {
    max-width: 110px;
  }
}
