/* =========================================================
   AUTH UI — Erow'n'in
   Pages :
   - login
   - set_password
   - resend_set_password
   ========================================================= */

:root {
  --auth-bg: #eef4fb;
  --auth-surface: #ffffff;
  --auth-surface-soft: #f8fafc;
  --auth-text: #0f172a;
  --auth-text-soft: #64748b;
  --auth-border: rgba(148, 163, 184, 0.36);
  --auth-primary: #2563eb;
  --auth-primary-dark: #1d4ed8;
  --auth-primary-soft: rgba(37, 99, 235, 0.12);
  --auth-warning: #f59e0b;
  --auth-success: #15803d;
  --auth-danger: #b91c1c;
  --auth-radius-lg: 28px;
  --auth-radius-md: 18px;
  --auth-radius-sm: 14px;
  --auth-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

body:not(.light-mode) {
  --auth-bg: #07111f;
  --auth-surface: #0f1d33;
  --auth-surface-soft: #13243d;
  --auth-text: #f8fafc;
  --auth-text-soft: rgba(226, 232, 240, 0.72);
  --auth-border: rgba(255, 255, 255, 0.10);
  --auth-primary: #3b82f6;
  --auth-primary-dark: #2563eb;
  --auth-primary-soft: rgba(59, 130, 246, 0.18);
  --auth-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

/* =========================================================
   COMMON AUTH CONTAINER
   ========================================================= */

.app-auth-container {
  width: min(680px, calc(100% - 32px));
  margin: 72px auto;
}

.app-auth-container--wide,
.app-auth-container--premium {
  width: min(720px, calc(100% - 32px));
}

.auth-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--auth-radius-lg);
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.96)),
    var(--auth-surface);
  border: 1px solid var(--auth-border);
  box-shadow: var(--auth-shadow);
  color: var(--auth-text);
}

body:not(.light-mode) .auth-card {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(15, 29, 51, 0.98), rgba(7, 17, 31, 0.98));
}

.auth-card--premium::before,
.auth-login-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #60a5fa, #f59e0b);
  opacity: 0.96;
}

.auth-header {
  margin-bottom: 28px;
  text-align: center;
}

.auth-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 22px;
  background: var(--auth-primary-soft);
  color: var(--auth-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.auth-icon i {
  font-size: 40px;
}

.auth-icon--secure {
  background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-dark));
  color: #ffffff;
}

.auth-kicker {
  margin: 0 0 10px;
  color: var(--auth-warning);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-title {
  margin: 0 0 12px;
  color: var(--auth-text);
  font-size: clamp(1.95rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.auth-subtitle {
  margin: 0 auto;
  max-width: 560px;
  color: var(--auth-text-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.auth-body {
  position: relative;
  z-index: 1;
}

/* =========================================================
   ALERTS
   ========================================================= */

.auth-messages {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.auth-alert {
  border-radius: var(--auth-radius-sm);
  padding: 0.95rem 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 0.9rem;
  border: 1px solid transparent;
}

.auth-alert div,
.auth-alert p,
.auth-alert li {
  margin: 0;
}

.auth-alert.error,
.auth-alert.danger {
  background: #fff1f2;
  color: #9f1239;
  border-color: #fecdd3;
}

.auth-alert.success {
  background: rgba(21, 128, 61, 0.12);
  color: #15803d;
  border-color: rgba(21, 128, 61, 0.22);
}

.auth-alert.info {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.22);
}

.auth-alert.warning {
  background: rgba(245, 158, 11, 0.13);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.26);
}

body:not(.light-mode) .auth-alert.error,
body:not(.light-mode) .auth-alert.danger {
  background: rgba(190, 18, 60, 0.16);
  color: #fecdd3;
  border-color: rgba(244, 63, 94, 0.28);
}

body:not(.light-mode) .auth-alert.success {
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.26);
}

body:not(.light-mode) .auth-alert.info {
  background: rgba(96, 165, 250, 0.14);
  color: #dbeafe;
  border-color: rgba(96, 165, 250, 0.24);
}

body:not(.light-mode) .auth-alert.warning {
  background: rgba(245, 158, 11, 0.14);
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.28);
}

/* =========================================================
   FORMS
   ========================================================= */

.auth-form {
  display: grid;
  gap: 20px;
  margin-top: 0.5rem;
}

.auth-form__group {
  display: grid;
  gap: 8px;
}

.auth-form__label,
.auth-form-label {
  display: block;
  color: var(--auth-text);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.auth-form__field {
  position: relative;
}

.auth-form input,
.auth-form select,
.auth-form textarea,
.auth-input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--auth-border) !important;
  border-radius: 16px !important;
  background: var(--auth-surface-soft) !important;
  color: var(--auth-text) !important;
  padding: 0 1rem !important;
  font-size: 1rem !important;
  box-sizing: border-box;
  margin: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.auth-form textarea {
  min-height: 120px;
  padding-top: 14px !important;
  resize: vertical;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus,
.auth-input:focus {
  border-color: rgba(37, 99, 235, 0.82) !important;
  background: var(--auth-surface) !important;
  box-shadow: 0 0 0 4px var(--auth-primary-soft) !important;
}

.auth-form input::placeholder,
.auth-input::placeholder {
  color: rgba(100, 116, 139, 0.72);
}

body:not(.light-mode) .auth-form input::placeholder,
body:not(.light-mode) .auth-input::placeholder {
  color: rgba(226, 232, 240, 0.40);
}

.field-error {
  margin-top: 0.35rem;
  color: var(--auth-danger);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
}

body:not(.light-mode) .field-error {
  color: #fecdd3;
}

.field-help {
  margin-top: 0.45rem;
  font-size: 0.92rem;
  color: var(--auth-text-soft);
}

.field-help--error {
  color: var(--auth-danger);
  font-weight: 800;
}

.field-help--success {
  color: var(--auth-success);
  font-weight: 800;
}

/* =========================================================
   PASSWORD UI
   ========================================================= */

.password-panel {
  display: grid;
  gap: 1rem;
}

.password-panel__row {
  display: grid;
  gap: 0.4rem;
}

.password-panel__label {
  font-weight: 800;
  color: var(--auth-text);
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap input,
.auth-form__field.auth-password-wrap input {
  padding-right: 3.6rem !important;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--auth-text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
  z-index: 3;
}

.auth-password-toggle:hover {
  background: var(--auth-primary-soft);
  color: var(--auth-text);
}

.auth-password-toggle:focus {
  outline: none;
  background: var(--auth-primary-soft);
  color: var(--auth-text);
}

.auth-password-toggle.is-visible {
  background: var(--auth-primary-soft);
  color: var(--auth-primary);
}

.auth-password-toggle i {
  font-size: 1.22rem;
  line-height: 1;
}

.password-help,
.form-help {
  padding: 1rem;
  border-radius: 16px;
  background: var(--auth-surface-soft);
  border: 1px solid var(--auth-border);
  color: var(--auth-text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.password-help ul,
.form-help ul {
  margin: 0.65rem 0 0 1.25rem;
  padding: 0;
}

.password-help li,
.form-help li {
  margin: 0.25rem 0;
}

.password-match-state {
  min-height: 24px;
  margin-top: 0.5rem;
  font-weight: 800;
}

.password-match-state--neutral {
  color: var(--auth-text-soft);
}

.password-match-state--success {
  color: var(--auth-success);
}

.password-match-state--error {
  color: var(--auth-danger);
}

/* =========================================================
   BUTTONS
   ========================================================= */

.auth-form__actions,
.auth-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.btn-auth {
  min-height: 50px;
  padding: 0 1.25rem;
  border-radius: 15px;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.18s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    filter 0.2s ease;
}

.btn-auth:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-auth-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-dark));
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.26);
}

.btn-auth-primary:hover {
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.34);
  filter: saturate(1.04);
}

.btn-auth-secondary {
  color: var(--auth-text);
  background: var(--auth-surface-soft);
  border-color: var(--auth-border);
}

.btn-auth-secondary:hover {
  color: var(--auth-text);
  background: var(--auth-primary-soft);
  border-color: rgba(37, 99, 235, 0.26);
}

.btn-auth-full,
.btn-primary--full {
  width: 100%;
}

/* Compatibility with existing Materialize-style buttons */

.saas-btn {
  border-radius: 15px !important;
  font-weight: 800 !important;
  text-transform: none !important;
}

.saas-btn--primary {
  background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-dark)) !important;
  color: #ffffff !important;
}

.saas-btn--secondary {
  background: var(--auth-surface-soft) !important;
  color: var(--auth-text) !important;
  border: 1px solid var(--auth-border) !important;
}

/* =========================================================
   LOGIN PAGE COMPATIBILITY
   ========================================================= */

.auth-login-page {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 56px;
}

.auth-login-shell {
  width: 100%;
  max-width: 560px;
}

.auth-login-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 32px 28px 24px;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(15, 29, 51, 0.98), rgba(7, 17, 31, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.auth-login-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-login-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 1rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(47, 103, 255, 0.20), rgba(106, 168, 255, 0.12));
  color: #6eb4ff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.auth-login-icon i {
  font-size: 40px;
}

.auth-login-title {
  margin: 0 0 0.45rem;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.auth-login-subtitle {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.72);
}

.auth-login-form .auth-input-wrap {
  position: relative;
}

.auth-input-icon {
  position: absolute;
  top: 50%;
  left: 0.95rem;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.52);
  font-size: 1.25rem;
  pointer-events: none;
  transition: color 0.2s ease;
  z-index: 2;
}

.auth-login-form .auth-input-wrap input[type="text"],
.auth-login-form .auth-input-wrap input[type="email"],
.auth-login-form .auth-input-wrap input[type="password"] {
  width: 100%;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  padding: 0 1rem 0 3rem !important;
  font-size: 1rem !important;
  box-sizing: border-box;
  margin: 0 !important;
  box-shadow: none !important;
}

.auth-login-form .auth-input-wrap input.password-field {
  padding-right: 3.5rem !important;
}

.auth-login-form .auth-input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.auth-login-form .auth-input-wrap input:focus {
  outline: none !important;
  border-color: rgba(95, 154, 255, 0.95) !important;
  background: rgba(255, 255, 255, 0.10) !important;
  box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.16) !important;
}

.auth-input-wrap:focus-within .auth-input-icon {
  color: #7cb8ff;
}

.auth-error-text {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.88rem;
  color: #ffb1b1;
}

.auth-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.25rem 0 1.6rem;
}

.auth-toggle-label {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
}

.auth-toggle-text {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.96rem;
  font-weight: 500;
}

.auth-toggle-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.auth-toggle-wrap input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-toggle-slider {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.auth-toggle-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease;
}

.auth-toggle-wrap input[type="checkbox"]:checked + .auth-toggle-slider {
  background: linear-gradient(135deg, #2f67ff, #4f93ff);
  border-color: rgba(95, 154, 255, 0.9);
  box-shadow: 0 8px 20px rgba(47, 103, 255, 0.22);
}

.auth-toggle-wrap input[type="checkbox"]:checked + .auth-toggle-slider::after {
  transform: translateX(22px);
}

.auth-toggle-wrap input[type="checkbox"]:focus + .auth-toggle-slider {
  box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.16);
}

.auth-footer {
  margin-top: 1.75rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  text-align: center;
}

.auth-footer-link {
  color: #8fc7ff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.auth-footer-link:hover {
  color: #b8ddff;
}

/* =========================================================
   LIGHT MODE LOGIN COMPATIBILITY
   ========================================================= */

body.light-mode .auth-login-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.98));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

body.light-mode .auth-login-title {
  color: #14213d;
}

body.light-mode .auth-login-subtitle {
  color: #60708c;
}

body.light-mode .auth-login-icon {
  background: linear-gradient(135deg, rgba(47, 103, 255, 0.12), rgba(120, 180, 255, 0.12));
  color: #2f67ff;
}

body.light-mode .auth-form-label {
  color: #1e2a44;
}

body.light-mode .auth-login-form .auth-input-wrap input[type="text"],
body.light-mode .auth-login-form .auth-input-wrap input[type="email"],
body.light-mode .auth-login-form .auth-input-wrap input[type="password"] {
  background: #ffffff !important;
  color: #182033 !important;
  border: 1px solid #d9e2ef !important;
}

body.light-mode .auth-login-form .auth-input-wrap input::placeholder {
  color: #8b97ad;
}

body.light-mode .auth-input-wrap:focus-within .auth-input-icon {
  color: #2f67ff;
}

body.light-mode .auth-input-icon {
  color: #7a869d;
}

body.light-mode .auth-toggle-text {
  color: #43516c;
}

body.light-mode .auth-toggle-slider {
  background: #e8eef8;
  border-color: #d4ddeb;
}

body.light-mode .auth-toggle-slider::after {
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
}

body.light-mode .auth-toggle-wrap input[type="checkbox"]:checked + .auth-toggle-slider {
  background: linear-gradient(135deg, #2f67ff, #4f93ff);
  border-color: rgba(47, 103, 255, 0.45);
}

body.light-mode .btn-auth-secondary {
  border: 1px solid #d7e0ef;
  color: #1f2a44;
  background: #f7f9fd;
}

body.light-mode .btn-auth-secondary:hover {
  background: #eef3fb;
}

body.light-mode .auth-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

body.light-mode .auth-footer-link {
  color: #2f67ff;
}

body.light-mode .auth-footer-link:hover {
  color: #184dcf;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 640px) {
  .app-auth-container,
  .app-auth-container--wide,
  .app-auth-container--premium {
    width: min(100% - 24px, 720px);
    margin: 32px auto;
  }

  .auth-card,
  .auth-card--premium {
    padding: 26px 18px 22px;
    border-radius: 22px;
  }

  .auth-title {
    font-size: 1.85rem;
  }

  .auth-subtitle {
    font-size: 0.95rem;
  }

  .auth-form__actions,
  .auth-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-auth {
    width: 100%;
  }

  .auth-login-page {
    padding: 24px 12px 40px;
    min-height: auto;
  }

  .auth-login-card {
    padding: 24px 18px 20px;
    border-radius: 20px;
  }

  .auth-login-title {
    font-size: 1.85rem;
  }
}
/* =========================================================
   AUTH PREMIUM HEADER / ICON OVERRIDE
   ========================================================= */

.auth-card--premium {
  position: relative;
  overflow: hidden;
}

.auth-card--premium::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background:
    radial-gradient(
      circle,
      rgba(245, 158, 11, 0.18),
      rgba(245, 158, 11, 0.06) 42%,
      transparent 70%
    );
  pointer-events: none;
  z-index: 0;
}

.auth-header {
  position: relative;
  z-index: 1;
}

.auth-icon.auth-icon--secure {
  position: relative;
  isolation: isolate;
  width: 82px;
  height: 82px;
  margin-bottom: 22px;
  border-radius: 26px;
  background:
    linear-gradient(145deg, #fff7ed, #ffedd5 52%, #fed7aa);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.28);
  box-shadow:
    0 18px 42px rgba(245, 158, 11, 0.22),
    0 8px 18px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.auth-icon.auth-icon--secure::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 32px;
  background:
    linear-gradient(
      135deg,
      rgba(245, 158, 11, 0.26),
      rgba(59, 130, 246, 0.10),
      rgba(245, 158, 11, 0.08)
    );
  filter: blur(10px);
  opacity: 0.72;
  z-index: -2;
}

.auth-icon.auth-icon--secure::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 15px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  filter: blur(1px);
  z-index: -1;
}

.auth-icon.auth-icon--secure i {
  color: #f59e0b !important;
  font-size: 42px;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.55),
    0 12px 26px rgba(245, 158, 11, 0.28);
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: fit-content;
  margin: 0 auto 12px;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.18);
  color: #d97706;
}

.auth-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

/* Dark mode premium */

body:not(.light-mode) .auth-card--premium::after {
  background:
    radial-gradient(
      circle,
      rgba(251, 191, 36, 0.16),
      rgba(59, 130, 246, 0.08) 42%,
      transparent 70%
    );
}

body:not(.light-mode) .auth-icon.auth-icon--secure {
  background:
    linear-gradient(
      145deg,
      rgba(245, 158, 11, 0.24),
      rgba(251, 191, 36, 0.14) 52%,
      rgba(15, 23, 42, 0.92)
    );
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.34);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.36),
    0 12px 30px rgba(245, 158, 11, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body:not(.light-mode) .auth-icon.auth-icon--secure::before {
  background:
    linear-gradient(
      135deg,
      rgba(251, 191, 36, 0.24),
      rgba(59, 130, 246, 0.16),
      rgba(245, 158, 11, 0.10)
    );
  opacity: 0.86;
}

body:not(.light-mode) .auth-icon.auth-icon--secure::after {
  background: rgba(255, 255, 255, 0.18);
}

body:not(.light-mode) .auth-icon.auth-icon--secure i {
  color: #fbbf24 !important;
  text-shadow:
    0 0 18px rgba(251, 191, 36, 0.28),
    0 12px 28px rgba(0, 0, 0, 0.32);
}

body:not(.light-mode) .auth-kicker {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.22);
  color: #fde68a;
}

body:not(.light-mode) .auth-kicker::before {
  background: #fbbf24;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.14);
}

/* Responsive */

@media (max-width: 640px) {
  .auth-icon.auth-icon--secure {
    width: 74px;
    height: 74px;
    border-radius: 23px;
  }

  .auth-icon.auth-icon--secure i {
    font-size: 38px;
  }

  .auth-card--premium::after {
    top: -150px;
    right: -160px;
  }
}
/* =========================================================
   AUTH FORM FIELD FIXES
   ========================================================= */

.auth-form__field {
  width: 100%;
}

.auth-form__field input[type="email"],
.auth-form__field input[type="text"],
.auth-form__field input[type="password"],
.auth-form input[type="email"],
.auth-form input[type="text"],
.auth-form input[type="password"] {
  display: block !important;
  width: 100% !important;
  min-height: 54px !important;
  box-sizing: border-box !important;
  border-radius: 16px !important;
  padding: 0 1rem !important;
}

.auth-form__field.auth-password-wrap input[type="password"],
.auth-form__field.auth-password-wrap input[type="text"],
.auth-password-wrap input[type="password"],
.auth-password-wrap input[type="text"] {
  padding-right: 3.6rem !important;
}

.auth-password-toggle {
  border: none;
}

.auth-password-toggle.is-visible {
  background: rgba(37, 99, 235, 0.14);
  color: var(--auth-primary);
}

body:not(.light-mode) .auth-password-toggle.is-visible {
  background: rgba(96, 165, 250, 0.18);
  color: #bfdbfe;
}
/* =========================================================
   AUTH INPUT VISIBILITY FIX
   ========================================================= */

.auth-form__field {
  width: 100%;
  min-height: 54px;
}

.auth-form__field input,
.auth-form input[type="email"],
.auth-form input[type="text"],
.auth-form input[type="password"] {
  display: block !important;
  width: 100% !important;
  min-height: 54px !important;
  height: 54px !important;
  box-sizing: border-box !important;
  opacity: 1 !important;
  visibility: visible !important;
  border-radius: 16px !important;
  border: 1px solid var(--auth-border, rgba(148, 163, 184, 0.36)) !important;
  background: var(--auth-surface-soft, #f8fafc) !important;
  color: var(--auth-text, #0f172a) !important;
  padding: 0 1rem !important;
  font-size: 1rem !important;
}

.auth-input-wrap.auth-password-wrap input {
  padding-left: 3rem !important;
  padding-right: 3.6rem !important;
}

.auth-password-toggle.is-visible {
  background: rgba(37, 99, 235, 0.16);
  color: var(--auth-primary, #2563eb);
}