﻿
/* ─── Card ──────────────────────────────────────────────────────── */
.auth__card {
  background: #ffffff;
  border: 1px solid #e4e7f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.10), 0 4px 16px rgba(0, 0, 0, 0.06);
  padding: 36px 30px 30px;
}

.auth__card--login  { width: 420px; }
.auth__card--signup { width: 440px; }

/* ─── Header ────────────────────────────────────────────────────── */
.auth__header {
  text-align: center;
  margin-bottom: 32px;
}

.auth__header img {
  width: 200px;
}

.auth__logo-icon {
  width: 52px;
  height: 52px;
  background: var(--main-color);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(150, 150, 150, 0.35);
}

.auth__logo-icon i {
  font-size: 22px;
  color: #fff;
}

.auth__header h2 {
  font-size: 22px;
  font-weight: 700;
  color: #434e59;
  margin-bottom: 6px;
}

.auth__header p {
  font-size: 13px;
  color: #8b90a7;
}

/* ─── Form Groups ───────────────────────────────────────────────── */
.auth__form-group {
  margin-bottom: 16px;
}

.auth__form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #5a5f7a;
  margin-bottom: 7px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ─── Input Wrap ────────────────────────────────────────────────── */
.auth__input-wrap {
  position: relative;
}

.auth__input-wrap > i.auth__field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #c0c4d8;
  pointer-events: none;
  transition: color 0.25s ease;
}

.auth__input-wrap input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  background: #f7f8fc;
  border: 1.5px solid #e4e7f0;
  border-radius: 10px;
  color: #1a1d2e;
  font-size: 14px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.auth__input-wrap input::placeholder {
  color: #c0c4d8;
}

.auth__input-wrap input:focus {
  background: #fff;
  border-color: var(--main-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.auth__input-wrap input:focus ~ i.auth__field-icon {
  color: var(--main-color);
}

/* ─── Eye Toggle ────────────────────────────────────────────────── */
.auth__toggle-pw {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #c0c4d8;
  cursor: pointer;
  transition: color 0.2s ease;
}

.auth__toggle-pw:hover {
  color: var(--main-color);
}

/* ─── Forgot Row ────────────────────────────────────────────────── */
.auth__forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
  margin-bottom: 24px;
}

.auth__forgot-row a {
  font-size: 12px;
  font-weight: 600;
  color: var(--main-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth__forgot-row a:hover {
  opacity: 0.9;
  text-decoration: underline;
}

/* ─── Name Row ──────────────────────────────────────────────────── */
.auth__name-row {
  display: flex;
  gap: 12px;
}

.auth__name-row .auth__form-group {
  flex: 1;
}

/* ─── Password Strength ─────────────────────────────────────────── */
.auth__strength-wrap {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.auth__strength-bar {
  display: flex;
  gap: 4px;
}

.auth__strength-bar span {
  flex: 1;
  height: 3px;
  border-radius: 4px;
  background: #e4e7f0;
  transition: background 0.3s ease;
}

.auth__strength-label {
  font-size: 11px;
  font-weight: 600;
  color: #b0b5cc;
  transition: color 0.3s ease;
  min-height: 14px;
}

.auth__strength-bar[data-level="1"] span:nth-child(1)                    { background: #ef4444; }
.auth__strength-bar[data-level="2"] span:nth-child(1),
.auth__strength-bar[data-level="2"] span:nth-child(2)                    { background: #f97316; }
.auth__strength-bar[data-level="3"] span:nth-child(1),
.auth__strength-bar[data-level="3"] span:nth-child(2),
.auth__strength-bar[data-level="3"] span:nth-child(3)                    { background: #eab308; }
.auth__strength-bar[data-level="4"] span:nth-child(1),
.auth__strength-bar[data-level="4"] span:nth-child(2),
.auth__strength-bar[data-level="4"] span:nth-child(3),
.auth__strength-bar[data-level="4"] span:nth-child(4)                    { background: #22c55e; }

/* ─── Primary Button ────────────────────────────────────────────── */
.auth__btn-primary {
    width: 100%;
    padding: 13px;
    background: var(--main-color);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 18px rgba(150, 150, 150, 0.38);
}

.auth__btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.auth__btn-primary:hover::before { opacity: 1; }

.auth__btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px ;
}

.auth__btn-primary:active { transform: translateY(0); }

/* ─── Divider ───────────────────────────────────────────────────── */
.auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
}

.auth__divider span {
  font-size: 11px;
  color: #b0b5cc;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.auth__divider::before,
.auth__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e4e7f0;
}

/* ─── Alt Buttons ───────────────────────────────────────────────── */
.auth__alt-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth__btn-alt {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 10px;
  background: #f7f8fc;
  border: 1.5px solid #e4e7f0;
  border-radius: 10px;
  color: #5a5f7a;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.25s ease, color 0.25s ease,
              background 0.25s ease, transform 0.15s ease,
              box-shadow 0.25s ease;
}

.auth__btn-alt i { font-size: 15px; }

.auth__btn-alt:hover { transform: translateY(-1px); }

.auth__btn-google:hover {
  border-color: #4285f4;
  color: #4285f4;
  background: #eef3fe;
  box-shadow: 0 4px 14px rgba(66, 133, 244, 0.15);
}

.auth__btn-otp:hover {
  border-color: var(--main-color);
  color: var(--main-color);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.15);
}

/* ─── Terms ─────────────────────────────────────────────────────── */
.auth__terms {
  font-size: 11px;
  color: #b0b5cc;
  text-align: center;
  margin-top: 20px;
  line-height: 18px;
}

.auth__terms a {
  color: var(--main-color);
  font-weight: 600;
  text-decoration: none;
}

.auth__terms a:hover { text-decoration: underline; }

/* ─── Footer ────────────────────────────────────────────────────── */
.auth__footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: #8b90a7;
}

.auth__footer a {
  color: var(--main-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth__footer a:hover {
  opacity: 0.9;
  text-decoration: underline;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BILLING ADDRESS — append these rules to the bottom of auth.css
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.auth__card--billing.no-borders {
    border: none;
    padding: 0;
    box-shadow: none;
}

/* ─── Section title ─────────────────────────────────────────────── */
.auth__section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #b0b5cc;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}

.auth__section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e4e7f0;
}

/* ─── Two-column row ────────────────────────────────────────────── */
.auth__col-row {
  display: flex;
  gap: 12px;
}

.auth__col-row .auth__form-group { flex: 1; }

.auth__col-row .auth__form-group--sm { flex: 0 0 130px; }

/* ─── Select wrap (mirrors input-wrap) ──────────────────────────── */
.auth__select-wrap {
  position: relative;
}

.auth__select-wrap > i.auth__field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #c0c4d8;
  pointer-events: none;
  transition: color 0.25s ease;
  z-index: 1;
}

.auth__select-wrap::after {
  content: '\f078';           /* fa-chevron-down */
  font-family: 'Font Awesome 7 Free';
  font-weight: 900;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: #c0c4d8;
  pointer-events: none;
  transition: color 0.25s ease;
}

.auth__select-wrap select {
  width: 100%;
  padding: 12px 36px 12px 40px;
  background: #f7f8fc;
  border: 1.5px solid #e4e7f0;
  border-radius: 10px;
  color: #1a1d2e;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.auth__select-wrap select:focus {
  background: #fff;
  border-color: var(--main-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.auth__select-wrap select:focus ~ i.auth__field-icon {
  color: var(--main-color);
}

.auth__select-wrap select:focus + i.auth__field-icon {
  color: var(--main-color);
}

.auth__select-wrap select option[value=""] {
  color: #c0c4d8;
}

/* chevron color on focus */
.auth__select-wrap:focus-within::after {
  color: var(--main-color);
}

/* ─── Optional badge ────────────────────────────────────────────── */
.auth__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.auth__label-row label {
  font-size: 12px;
  font-weight: 700;
  color: #5a5f7a;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.auth__badge-optional {
  font-size: 10px;
  font-weight: 600;
  color: #b0b5cc;
  background: #f0f2f8;
  border: 1px solid #e4e7f0;
  border-radius: 20px;
  padding: 2px 8px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* ─── Save checkbox row ─────────────────────────────────────────── */
.auth__checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 20px;
  cursor: pointer;
  user-select: none;
}

.auth__checkbox-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid #e4e7f0;
  border-radius: 5px;
  background: #f7f8fc;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.auth__checkbox-row input[type="checkbox"]:checked {
  background: var(--main-color);
  border-color: var(--main-color);
}

.auth__checkbox-row input[type="checkbox"]:checked::after {
  content: '\f00c';           /* fa-check */
  font-family: 'Font Awesome 7 Free';
  font-weight: 900;
  font-size: 10px;
  color: #fff;
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.auth__checkbox-row span {
  font-size: 13px;
  color: #5a5f7a;
  font-weight: 500;
}

/* ─── Secure note ───────────────────────────────────────────────── */
.auth__secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 11px;
  color: #b0b5cc;
}

.auth__secure-note i {
  font-size: 12px;
  color: #22c55e;
}

/* ─── Validation Summary ─────────────────────────────────────────────────── */
.auth__summary {
  margin-top: 16px;
  font-size: 15px;
  color: #ff4d4f;
}
/* ─── error message ───────────────────────────────────────────────────── */
.auth__error {
  font-size: 15px;
  color: #ff4d4f;
  margin-bottom: 10px;
}

.auth__error strong {
  display: block;
  word-wrap: break-word;
  white-space: pre-wrap;
  
}
