/* ═══════════════════════════════════════
   REGISTER — Page-specific styles
   ═══════════════════════════════════════ */

.auth-title {
  font-weight: var(--y-weight-bold);
  font-size: var(--y-font-xxxl);
  margin-bottom: var(--y-space-s);
}

/* TASK 13 FIX: Increased margin to prevent touching the form */
.auth-subtitle {
  margin-bottom: var(--y-space-4xl);
}

/* ── Email input icon positioning ── */
.input-with-icon .form-control {
  padding-left: 2.5rem;
}

/* ── Password wrap ── */
.password-wrap {
  position: relative;
}

.password-wrap .form-control {
  padding-left: 2.5rem;
}

/* TASK 12 equivalent for Register: Hide default Edge/IE password reveal icon */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}

.password-toggle {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--y-color-text-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--y-space-xs);
  display: flex;
  align-items: center;
}

/* ── Password strength indicator ── */
.pw-strength {
  display: none;
  align-items: center;
  gap: var(--y-space-m);
  margin-top: var(--y-space-s);
}

.pw-strength.visible {
  display: flex;
}

.pw-strength-bar {
  flex: 1;
  height: 4px;
  background: var(--y-color-bg-subtle);
  border-radius: 999px;
  overflow: hidden;
}

.pw-strength-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  width: 0;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.pw-strength-fill.weak {
  width: 33%;
  background: var(--y-color-danger);
}

.pw-strength-fill.fair {
  width: 66%;
  background: #f59e0b;
}

.pw-strength-fill.strong {
  width: 100%;
  background: var(--y-color-success);
}

.pw-strength-label {
  font-size: var(--y-font-xs);
  font-weight: var(--y-weight-medium);
  white-space: nowrap;
  min-width: 3rem;
  text-align: left;
}

.pw-strength-label.weak {
  color: var(--y-color-danger);
}

.pw-strength-label.fair {
  color: #f59e0b;
}

.pw-strength-label.strong {
  color: var(--y-color-success);
}

/* ── Register footer note ── */
.register-note {
  margin-top: var(--y-space-xxl);
}

.register-link {
  color: var(--y-color-primary);
  font-weight: var(--y-weight-semibold);
}

.register-link:hover {
  text-decoration: underline;
}

/* ── Shake animation for invalid submit ── */
@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-6px);
  }

  40% {
    transform: translateX(6px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }
}

.auth-card.shake {
  animation: shake 0.4s ease;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 1200px) {
  .auth-title {
    font-size: var(--y-font-xxl);
  }
}

@media (max-width: 992px) {

  /* TASK 20 FIX: Push icon down below header on mobile view */
  .auth-icon {
    margin-top: var(--y-space-5xl);
  }
}

@media (max-width: 768px) {
  .auth-title {
    font-size: var(--y-font-xl);
  }

  .auth-subtitle {
    font-size: var(--y-font-s);
  }
}

@media (max-width: 480px) {
  .auth-title {
    font-size: var(--y-font-xl);
  }
}