/* ================================================================
   AUTH — Login & Register CSS
   ================================================================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FCE4EC 0%, #F8BBD0 30%, #F48FB1 70%, #EC407A 100%);
  padding: 30px 16px;
  position: relative;
}

.auth-page::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.08)"/><circle cx="50" cy="70" r="2.5" fill="rgba(255,255,255,0.06)"/></svg>');
  background-size: 150px 150px;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  width: 100%;
  max-width: 440px;
  padding: 40px 36px;
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.5s ease;
}

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

.auth-logo img {
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
}

.auth-logo h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.auth-logo p {
  color: var(--gray-500);
  font-size: 13px;
}

/* Form Fields */
.auth-field {
  margin-bottom: 18px;
}

.auth-field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 13px;
  color: var(--gray-700);
  margin-bottom: 6px;
}

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

.auth-field .input-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-size: 16px;
}

.auth-field input {
  width: 100%;
  padding: 11px 42px 11px 42px;  /* Right padding 42px untuk space icon mata */
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: var(--font-body);
  color: var(--gray-900);
  transition: var(--transition);
  background: var(--white);
}

.auth-field input:focus {
  border-color: var(--pink-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.auth-field input::placeholder {
  color: var(--gray-500);
}

.auth-field .input-wrapper i.toggle-password {
  position: absolute;
  left: auto;          /* Override .input-wrapper i { left: 14px } */
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  padding: 6px;        /* Clickable area kecil, hanya seputar icon */
  z-index: 2;
  color: var(--gray-500);
  font-size: 16px;
}

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

/* Submit Button */
.auth-submit {
  width: 100%;
  padding: 13px;
  background: var(--pink-primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 6px;
}

.auth-submit:hover {
  background: var(--pink-dark);
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

/* Divider */
.auth-divider {
  text-align: center;
  margin: 22px 0;
  position: relative;
}

.auth-divider::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: var(--gray-300);
}

.auth-divider span {
  background: var(--white);
  padding: 0 16px;
  font-size: 12.5px;
  color: var(--gray-500);
  position: relative;
}

/* Link */
.auth-link {
  text-align: center;
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 20px;
}

.auth-link a {
  color: var(--pink-primary);
  font-weight: 600;
}

.auth-link a:hover {
  color: var(--pink-dark);
  text-decoration: underline;
}

/* Alert Messages */
.auth-alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-alert.alert-danger {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid #FFCDD2;
}

.auth-alert.alert-success {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #C8E6C9;
}

/* Back to home */
.auth-back {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
}

.auth-back a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.auth-back a:hover {
  color: var(--white);
}

@media (max-width: 575.98px) {
  .auth-card {
    padding: 30px 24px;
  }

  .auth-logo h2 {
    font-size: 19px;
  }
}
