/********** Font **********/
@font-face {
  font-family: "Estedad";
  src: url("../../../panel/assets/fonts/EstedadV.woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/********** Auth Variables **********/
:root {
  --auth-primary: #6435fd;
  --auth-primary-dark: #4c1fd9;
  --auth-primary-light: #8b6bfe;
  --auth-surface: #ffffff;
  --auth-bg: #f8f6ff;
  --auth-bg-secondary: #f3f0ff;
  --auth-text: #1e1b4b;
  --auth-text-secondary: #6b6d7a;
  --auth-text-tertiary: #9395a3;
  --auth-border: rgba(100, 53, 253, 0.1);
  --auth-border-hover: rgba(100, 53, 253, 0.2);
  --auth-danger: #ef4444;
  --auth-warning: #f59e0b;
  --auth-radius: 12px;
  --auth-transition: 0.2s ease;
}

/********** Dark Mode **********/
[data-theme="dark"] {
  --auth-surface: #1a1832;
  --auth-bg: #0f0d20;
  --auth-bg-secondary: #1e1b3a;
  --auth-text: #e8e6f0;
  --auth-text-secondary: #a09db8;
  --auth-text-tertiary: #76738a;
  --auth-border: rgba(100, 53, 253, 0.15);
  --auth-border-hover: rgba(100, 53, 253, 0.25);
}

[data-theme="dark"] .dwvcss-auth-body {
  background-color: #0f0d20;
}

[data-theme="dark"] .dwvcss-auth-card {
  background: #1a1832;
  border-color: rgba(100, 53, 253, 0.12);
}

[data-theme="dark"] .dwvcss-auth-input {
  background: #1a1832 !important;
  color: #e8e6f0 !important;
}

[data-theme="dark"] .dwvcss-auth-input::placeholder {
  color: #76738a !important;
}

[data-theme="dark"] .dwvcss-auth-captcha-code {
  background: #1e1b3a !important;
  color: #e8e6f0 !important;
}

[data-theme="dark"] .dwvcss-auth-captcha-btn {
  background: #1e1b3a !important;
}

[data-theme="dark"] .dwvcss-auth-captcha-btn:hover {
  background: rgba(100, 53, 253, 0.1) !important;
}

[data-theme="dark"] .dwvcss-auth-checkbox-mark {
  border-color: rgba(100, 53, 253, 0.25);
}

[data-theme="dark"] .dwvcss-auth-input-eye {
  color: #76738a;
}

[data-theme="dark"] .dwvcss-auth-footer {
  color: #76738a;
}
/********** Body **********/
.dwvcss-auth-body {
  min-height: 100dvh;
  display: flex;
  align-items: flex-start; /* Changed from center */
  justify-content: center;
  background-color: var(--auth-bg);
  background-size: cover;
  background-position: center;
  font-family: "Estedad", Tahoma, sans-serif;
  padding: 24px;
  overflow-y: auto; /* Always scrollable */
}
.dwvcss-auth-body h1,
.dwvcss-auth-body h2,
.dwvcss-auth-body h3,
.dwvcss-auth-body h4,
.dwvcss-auth-body h5,
.dwvcss-auth-body h6 {
  font-family: "Estedad", Tahoma, sans-serif;
}
/********** Wrapper **********/
.dwvcss-auth-wrapper {
  width: 100%;
  max-width: 1050px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin: auto 0; /* Auto margin top/bottom when content is small */
  padding: 40px 0; /* Some breathing room */
}

/********** Card **********/

.dwvcss-auth-card {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--auth-surface);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(100, 53, 253, 0.08);
  overflow: hidden;
  border: 1px solid var(--auth-border);
  height: auto; /* Let content decide height */
  min-height: auto; /* No forced min-height */
}

@media (min-width: 1024px) {
  .dwvcss-auth-card {
    grid-template-columns: 1fr 1fr;
    min-height: 620px; /* Keep min-height when content is short */
    /* overflow: hidden is fine because content fits */
  }
}

/********** Form Column **********/
.dwvcss-auth-form-col {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: auto; /* Let content decide */
}

@media (max-width: 640px) {
  .dwvcss-auth-form-col {
    padding: 40px 28px;
  }
}

@media (max-width: 480px) {
  .dwvcss-auth-form-col {
    padding: 32px 20px;
  }
}

/********** Logo **********/
.dwvcss-auth-logo {
  text-align: center;
  margin-bottom: 40px;
}

.dwvcss-auth-logo img {
  height: 44px;
  width: auto;
}

/********** Panel **********/
.dwvcss-auth-panel {
  animation: auth-fadein 0.3s ease;
}

@keyframes auth-fadein {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/********** Form **********/
.dwvcss-auth-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/********** Heading **********/
.dwvcss-auth-heading {
  margin-bottom: 4px;
}

.dwvcss-auth-heading h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--auth-text);
  margin: 0 0 6px;
}

.dwvcss-auth-heading p {
  font-size: 0.875rem;
  color: var(--auth-text-secondary);
  margin: 0;
  line-height: 1.6;
}

/********** Field **********/
.dwvcss-auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/********** Label **********/
.dwvcss-auth-label {
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: var(--auth-text) !important;
  display: block !important;
  margin: 0 !important;
}

/********** Star **********/
.dwvcss-auth-star {
  color: var(--auth-danger);
  margin-inline-start: 2px;
}

/********** Input **********/
.dwvcss-auth-input {
  width: 100% !important;
  max-width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  padding-inline: 16px !important;
  border: 1.5px solid var(--auth-border) !important;
  border-radius: var(--auth-radius) !important;
  font-size: 0.875rem !important;
  color: var(--auth-text) !important;
  background: var(--auth-surface) !important;
  outline: none !important;
  box-shadow: none !important;
  font-family: "Estedad", Tahoma, sans-serif !important;
  transition: all var(--auth-transition) !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}

.dwvcss-auth-input::placeholder {
  color: var(--auth-text-tertiary) !important;
  opacity: 1 !important;
}

.dwvcss-auth-input:hover {
  border-color: var(--auth-border-hover) !important;
}

.dwvcss-auth-input:focus {
  border-color: var(--auth-primary) !important;
  box-shadow: 0 0 0 4px rgba(100, 53, 253, 0.08) !important;
}

.dwvcss-auth-input--verify {
  border-color: var(--auth-warning) !important;
}

.dwvcss-auth-input--error {
  border-color: var(--auth-danger) !important;
}

/********** Select **********/
.dwvcss-auth-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239395a3' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: left 16px center !important;
  background-size: 14px !important;
  padding-inline-end: 44px !important;
}

/* [dir="rtl"] .dwvcss-auth-select {
  background-position: right 16px center !important;
} */

/********** Textarea **********/
.dwvcss-auth-textarea {
  min-height: 100px !important;
  height: auto !important;
  padding: 12px 16px !important;
  resize: vertical !important;
  line-height: 1.6 !important;
}

/********** Password Wrapper **********/
.dwvcss-auth-input-wrap {
  position: relative;
}

.dwvcss-auth-input-eye {
  position: absolute;
  inset-inline-end: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--auth-text-tertiary);
  font-size: 1.25rem;
  padding: 4px;
  transition: color 0.2s;
  z-index: 2;
}

.dwvcss-auth-input-eye:hover {
  color: var(--auth-primary);
}

/********** Row **********/
.dwvcss-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/********** Checkbox **********/
.dwvcss-auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.dwvcss-auth-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.dwvcss-auth-checkbox-mark {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--auth-border-hover);
  border-radius: 5px;
  flex-shrink: 0;
  transition: all 0.2s;
  position: relative;
}

.dwvcss-auth-checkbox input:checked + .dwvcss-auth-checkbox-mark {
  background: var(--auth-primary);
  border-color: var(--auth-primary);
}

.dwvcss-auth-checkbox input:checked + .dwvcss-auth-checkbox-mark::after {
  content: "";
  position: absolute;
  inset-inline-start: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.dwvcss-auth-checkbox-text {
  font-size: 0.8125rem;
  color: var(--auth-text-secondary);
  user-select: none;
}

/********** Link **********/
.dwvcss-auth-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--auth-primary);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.dwvcss-auth-link:hover {
  color: var(--auth-primary-dark);
}

/********** Submit Button **********/
.dwvcss-auth-submit {
  width: 100%;
  height: 50px !important;
  min-height: 50px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: var(--auth-primary) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--auth-radius) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  font-family: "Estedad", Tahoma, sans-serif !important;
  transition: all var(--auth-transition) !important;
  box-shadow: 0 4px 16px rgba(100, 53, 253, 0.2) !important;
  margin-top: 4px !important;
  box-sizing: border-box !important;
}

.dwvcss-auth-submit:hover {
  background: var(--auth-primary-dark) !important;
  box-shadow: 0 6px 24px rgba(100, 53, 253, 0.3) !important;
  transform: translateY(-1px) !important;
}

.dwvcss-auth-submit:active {
  transform: translateY(0) !important;
}

/********** Switch Text **********/
.dwvcss-auth-switch {
  text-align: center;
  font-size: 0.875rem;
  color: var(--auth-text-secondary);
  margin: 0;
}

.dwvcss-auth-switch a {
  color: var(--auth-primary);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.dwvcss-auth-switch a:hover {
  color: var(--auth-primary-dark);
}

/********** Captcha Row **********/
/********** Captcha Container **********/
.dwv-captcha-container {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

/********** Captcha Wrapper (Vertical Stack) **********/
.dwvcss-auth-captcha-wrap {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

/********** Captcha Top Row (Code Image + Buttons) **********/
.dwvcss-auth-captcha-top-row {
  display: flex !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
}

/********** Captcha Code Image **********/
.dwvcss-auth-captcha-code {
  flex: 1 1 auto !important;
  min-width: 140px !important;
  height: 48px !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--auth-bg-secondary) !important;
  border: 1.5px solid var(--auth-border) !important;
  border-radius: var(--auth-radius) !important;
  font-family: "Courier New", monospace !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  color: var(--auth-text) !important;
  padding-inline: 12px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  user-select: none !important;
}

/********** Captcha Buttons Wrapper **********/
.dwvcss-auth-captcha-buttons {
  display: flex !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

/********** Captcha Buttons **********/
.dwvcss-auth-captcha-btn {
  width: 48px !important;
  min-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--auth-bg-secondary) !important;
  border: 1.5px solid var(--auth-border) !important;
  border-radius: var(--auth-radius) !important;
  cursor: pointer !important;
  color: var(--auth-text-secondary) !important;
  transition: all var(--auth-transition) !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

.dwvcss-auth-captcha-btn:hover {
  background: rgba(100, 53, 253, 0.06) !important;
  color: var(--auth-primary) !important;
  border-color: var(--auth-border-hover) !important;
}

/********** Captcha Input - Full Width **********/
.dwvcss-auth-captcha-input-full {
  width: 100% !important;
  max-width: 100% !important;
}

/********** Captcha States **********/
.dwvcss-auth-captcha-loading {
  color: var(--auth-text-tertiary) !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
}

.dwvcss-auth-captcha-error {
  color: var(--auth-danger) !important;
  font-size: 0.875rem !important;
}

.dwvcss-auth-captcha-refreshed {
  animation: auth-captcha-pulse 0.5s ease;
}

@keyframes auth-captcha-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

/* ===== Mobile: Break at 400px ===== */
@media (max-width: 400px) {
  .dwvcss-auth-captcha-top-row {
    flex-direction: column !important;
  }

  .dwvcss-auth-captcha-code {
    width: 100% !important;
    min-width: 100% !important;
  }

  .dwvcss-auth-captcha-buttons {
    width: 100% !important;
  }

  .dwvcss-auth-captcha-buttons .dwvcss-auth-captcha-btn {
    flex: 1 1 auto !important;
    width: auto !important;
  }
}

/********** Timer **********/
.dwvcss-auth-timer {
  font-size: 0.8125rem;
  color: var(--auth-text-secondary);
}

/********** Error Text **********/
.dwvcss-auth-error-text {
  color: var(--auth-danger);
  font-size: 0.75rem;
  margin-top: 4px;
}

/********** Verification Section **********/
.dwvcss-auth-verification-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/********** Notices **********/
.dwvcss-auth-notices {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dwvcss-auth-notice {
  font-size: 0.8125rem;
  padding: 10px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}

/********** Image Column **********/
.dwvcss-auth-image-col {
  display: none;
  position: relative;
  background: linear-gradient(
    135deg,
    var(--auth-primary) 0%,
    var(--auth-primary-light) 50%,
    #6366f1 100%
  );
  overflow: hidden;
}

@media (min-width: 1024px) {
  .dwvcss-auth-image-col {
    display: block;
    min-height: 100%; /* Cover full card height */
  }
}
/* When viewport is shorter than card content */
@media (min-height: 800px) {
  .dwvcss-auth-body {
    align-items: center; /* Center when there's enough height */
  }

  .dwvcss-auth-wrapper {
    margin: auto; /* Center vertically */
    padding: 0;
  }
}
.dwvcss-auth-image-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  mix-blend-mode: overlay;
}

.dwvcss-auth-image-content {
  position: relative;
  z-index: 1;
  padding: 56px 48px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.dwvcss-auth-image-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.4;
}

.dwvcss-auth-image-content p {
  font-size: 0.9375rem;
  opacity: 0.85;
  line-height: 1.7;
  margin: 0 0 40px;
}

/********** Features List **********/
.dwvcss-auth-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dwvcss-auth-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.dwvcss-auth-features li i {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}

/********** Footer **********/
.dwvcss-auth-footer {
  font-size: 0.75rem;
  color: var(--auth-text-tertiary);
  margin: 0;
}

/********** Utility **********/
.dwvcss-hidden {
  display: none !important;
}

.dwvcss-auth-disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/********** Resend Button **********/
.dwvcss-auth-resend-btn {
  font-size: 0.8125rem;
  color: var(--auth-primary);
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 4px;
  font-weight: 500;
  transition: color 0.2s;
}

.dwvcss-auth-resend-btn:hover {
  color: var(--auth-primary-dark);
}

.dwvcss-auth-resend-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/********** Spinner **********/
.dwv-loading-spinner {
  display: none;
  width: 18px;
  height: 18px;
}

.dwv-loading-spinner::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  animation: dwv-spin 0.8s linear infinite;
}

@keyframes dwv-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==================== RESET PASSWORD PAGE STYLES ==================== */

/********** Simple Card (Full Width Form) **********/
.dwvcss-auth-card-simple {
  max-width: 480px;
  margin: 0 auto;
  grid-template-columns: 1fr !important;
  min-height: auto !important;
}

.dwvcss-auth-form-col-full {
  padding: 56px 48px;
}

@media (max-width: 640px) {
  .dwvcss-auth-form-col-full {
    padding: 40px 28px;
  }
}

@media (max-width: 480px) {
  .dwvcss-auth-form-col-full {
    padding: 32px 20px;
  }
}

/********** Success Icon in Header **********/
.dwvcss-auth-icon-success {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(100, 53, 253, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.75rem;
  color: var(--auth-primary);
}

[data-theme="dark"] .dwvcss-auth-icon-success {
  background: rgba(100, 53, 253, 0.12);
}

/********** Message Containers **********/
.dwvcss-auth-message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--auth-radius);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  animation: auth-fadein 0.3s ease;
}

.dwvcss-auth-message i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.dwvcss-auth-message-error {
  background: rgba(239, 68, 68, 0.06);
  color: var(--auth-danger);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

[data-theme="dark"] .dwvcss-auth-message-error {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}

.dwvcss-auth-message-success {
  background: rgba(16, 185, 129, 0.06);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] .dwvcss-auth-message-success {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
}

/********** Password Strength Meter **********/
.dwvcss-auth-password-strength {
  margin-top: 4px;
}

.strength-bar {
  width: 100%;
  height: 4px;
  background: var(--auth-border);
  border-radius: 2px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.strength-bar::before {
  content: "";
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition:
    width 0.3s ease,
    background 0.3s ease;
}

/* Strength Levels */
.strength-bar[data-strength="0"]::before {
  width: 0%;
}
.strength-bar[data-strength="1"]::before {
  width: 20%;
  background: var(--auth-danger);
}
.strength-bar[data-strength="2"]::before {
  width: 40%;
  background: #f59e0b;
}
.strength-bar[data-strength="3"]::before {
  width: 60%;
  background: #f59e0b;
}
.strength-bar[data-strength="4"]::before {
  width: 80%;
  background: #10b981;
}
.strength-bar[data-strength="5"]::before {
  width: 100%;
  background: #10b981;
}

.strength-text {
  display: block;
  font-size: 0.75rem;
  margin-top: 4px;
  color: var(--auth-text-tertiary);
  transition: color 0.3s ease;
}

.strength-text[data-strength="1"] {
  color: var(--auth-danger);
}
.strength-text[data-strength="2"] {
  color: #f59e0b;
}
.strength-text[data-strength="3"] {
  color: #f59e0b;
}
.strength-text[data-strength="4"] {
  color: #10b981;
}
.strength-text[data-strength="5"] {
  color: #10b981;
}

/********** Password Match Indicator **********/
.dwvcss-auth-password-match {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #10b981;
  margin-top: 4px;
  animation: auth-fadein 0.3s ease;
}

.dwvcss-auth-password-match i {
  font-size: 0.875rem;
}

.dwvcss-auth-password-match.mismatch {
  color: var(--auth-danger);
}

/********** Password Requirements **********/
.dwvcss-auth-requirements {
  background: var(--auth-bg-secondary);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius);
  padding: 16px;
}

[data-theme="dark"] .dwvcss-auth-requirements {
  background: rgba(100, 53, 253, 0.05);
}

.requirements-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--auth-text-secondary);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.requirements-title i {
  color: var(--auth-primary);
  font-size: 1rem;
}

.requirements-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.requirements-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--auth-text-tertiary);
  transition: color 0.2s ease;
}

.requirements-list li i {
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

/* Requirement States */
.requirements-list li.valid {
  color: #10b981;
}

.requirements-list li.valid i::before {
  content: "\ea5e"; /* ti ti-circle-check */
  color: #10b981;
}

.requirements-list li.invalid {
  color: var(--auth-text-tertiary);
}

.requirements-list li.invalid i::before {
  content: "\ea54"; /* ti ti-circle */
  color: var(--auth-text-tertiary);
}

/********** Button Icon **********/
.dwvcss-auth-submit i {
  font-size: 1.125rem;
}

/********** Back Link with Icon **********/
.dwvcss-auth-switch .dwvcss-auth-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dwvcss-auth-switch .dwvcss-auth-link i {
  font-size: 0.875rem;
}

/********** Loading State for Submit Button **********/
.dwvcss-auth-submit.loading {
  pointer-events: none;
  opacity: 0.8;
}

.dwvcss-auth-submit.loading .dwv-loading-spinner {
  display: inline-block;
}

.dwvcss-auth-submit.loading i:not(.dwv-loading-spinner) {
  display: none;
}

/********** Shake Animation for Errors **********/
@keyframes auth-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-4px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(4px);
  }
}

.dwvcss-auth-shake {
  animation: auth-shake 0.5s ease;
}

/********** Disabled Input State **********/
.dwvcss-auth-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--auth-bg-secondary) !important;
}

/********** Focus Visible for Accessibility **********/
.dwvcss-auth-input:focus-visible,
.dwvcss-auth-submit:focus-visible,
.dwvcss-auth-input-eye:focus-visible,
.dwvcss-auth-link:focus-visible {
  outline: 2px solid var(--auth-primary);
  outline-offset: 2px;
}
