/* ============================================================
   NOVA Store - Auth Pages (Simple & Clean)
   ============================================================ */

.auth-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--primary-soft) 100%);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--gradient-1);
}

/* ================= Header ================= */
.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  background: var(--gradient-1);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 26px;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

.auth-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.auth-header h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.auth-header p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

.auth-header p a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.auth-header p a:hover {
  text-decoration: underline;
}

/* ================= Alerts ================= */
.auth-alert {
  padding: 14px 18px;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 20px;
}

.auth-alert.success {
  background: #ECFDF5;
  color: var(--success);
  border: 1px solid #A7F3D0;
}

.auth-alert.error {
  background: #FEF2F2;
  color: var(--danger);
  border: 1px solid #FECACA;
}

.auth-alert.info {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-soft-2);
}

.auth-alert i {
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ================= Form ================= */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-form-group label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-form-group label a {
  font-size: 12.5px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-form-group label a:hover {
  text-decoration: underline;
}

.auth-input-wrapper {
  position: relative;
}

.auth-input-wrapper i.input-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 15px;
  pointer-events: none;
  transition: var(--transition);
}

.auth-input-wrapper input {
  width: 100%;
  padding: 14px 48px 14px 48px;
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: var(--transition);
}

.auth-input-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.auth-input-wrapper input:focus ~ i.input-icon {
  color: var(--primary);
}

.auth-input-wrapper input::placeholder {
  color: var(--gray-light);
}

.auth-input-wrapper .password-toggle {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--gray);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  transition: var(--transition);
}

.auth-input-wrapper .password-toggle:hover {
  color: var(--primary);
}

/* ================= Error ================= */
.auth-error {
  font-size: 12.5px;
  color: var(--danger);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-error i {
  font-size: 11px;
}

/* ================= Options ================= */
.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: -4px;
}

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--ink-2);
  font-weight: 600;
  user-select: none;
}

.auth-checkbox input {
  display: none;
}

.auth-checkbox-mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--line);
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
}

.auth-checkbox input:checked + .auth-checkbox-mark {
  background: var(--primary);
  border-color: var(--primary);
}

.auth-checkbox input:checked + .auth-checkbox-mark::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 10px;
}

/* ================= Submit Button ================= */
.auth-submit-btn {
  width: 100%;
  padding: 15px 24px;
  border-radius: 12px;
  border: none;
  background: var(--primary);
  color: var(--white);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
  margin-top: 8px;
}

.auth-submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

/* ================= Divider ================= */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-divider span {
  font-size: 12px;
  color: var(--gray);
  font-weight: 600;
}

/* ================= Social ================= */
.auth-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: var(--white);
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.auth-social-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.auth-social-btn i {
  font-size: 16px;
}

.auth-social-btn.google i {
  color: #DB4437;
}

.auth-social-btn.apple i {
  color: var(--ink);
}

/* ================= Footer ================= */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ================= Terms ================= */
.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: 10px;
}

.auth-terms .auth-checkbox {
  margin-top: 2px;
}

.auth-terms a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.auth-terms a:hover {
  text-decoration: underline;
}

/* ================= Responsive ================= */
@media (max-width: 600px) {
  .auth-page {
    padding: 30px 16px;
    min-height: auto;
  }

  .auth-card {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .auth-header h1 {
    font-size: 22px;
  }

  .auth-header p {
    font-size: 13px;
  }

  .auth-logo {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }

  .auth-input-wrapper input {
    padding: 13px 44px 13px 44px;
    font-size: 13.5px;
  }

  .auth-social {
    grid-template-columns: 1fr;
  }

  .auth-submit-btn {
    padding: 14px 20px;
    font-size: 14px;
  }
}