/* ==========================================================================
   DateMeet - Auth CSS
   Login, Register, Invite Code pages
   ========================================================================== */

/* --------------------------------------------------------------------------
   Auth Page Base
   -------------------------------------------------------------------------- */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(160deg, #fff0f1 0%, #fff5f5 40%, #fffcfc 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 0 40px;
  position: relative;
  overflow-x: hidden;
}

/* Decorative blobs */
.auth-page::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255,71,87,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.auth-page::after {
  content: '';
  position: absolute;
  bottom: 80px;
  left: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255,165,0,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Auth Logo
   -------------------------------------------------------------------------- */
.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 0 28px;
  position: relative;
  z-index: 1;
}

.auth-logo-icon {
  width: 72px;
  height: 72px;
  background: var(--primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(255, 71, 87, 0.35);
}

.auth-logo-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.auth-logo-slogan {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Auth Form Card
   -------------------------------------------------------------------------- */
.auth-form {
  background: #fff;
  border-radius: 24px;
  padding: 28px 20px 24px;
  width: calc(100% - 32px);
  max-width: 380px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Auth Title
   -------------------------------------------------------------------------- */
.auth-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Invite Code Notice
   -------------------------------------------------------------------------- */
.invite-code-notice {
  background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
  border: 1.5px solid #ffd54f;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.invite-code-notice-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.invite-code-notice-text {
  flex: 1;
}

.invite-code-notice-title {
  font-size: 13px;
  font-weight: 700;
  color: #856404;
  margin-bottom: 2px;
}

.invite-code-notice-desc {
  font-size: 12px;
  color: #997404;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Gender Selector
   -------------------------------------------------------------------------- */
.gender-select {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.gender-btn {
  flex: 1;
  height: 64px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

.gender-btn-icon {
  font-size: 24px;
  line-height: 1;
}

.gender-btn.male .gender-btn-icon {
  color: #4a90e2;
}

.gender-btn.female .gender-btn-icon {
  color: var(--primary);
}

.gender-btn.selected {
  border-color: var(--primary);
  background: rgba(255, 71, 87, 0.04);
  color: var(--primary);
}

.gender-btn.selected.male {
  border-color: #4a90e2;
  background: rgba(74, 144, 226, 0.06);
  color: #4a90e2;
}

.gender-btn:active {
  transform: scale(0.97);
}

/* --------------------------------------------------------------------------
   Interests Grid
   -------------------------------------------------------------------------- */
.interests-section {
  margin-bottom: 16px;
}

.interests-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-medium);
  margin-bottom: 10px;
}

.interests-hint {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.interests-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interest-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 13px;
  color: var(--text-medium);
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  -webkit-user-select: none;
  font-weight: 500;
}

.interest-tag-emoji {
  font-size: 16px;
  line-height: 1;
}

.interest-tag:active {
  transform: scale(0.95);
}

.interest-tag.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.interest-tag.selected .interest-tag-emoji {
  filter: none;
}

/* --------------------------------------------------------------------------
   Auth Form Fields
   -------------------------------------------------------------------------- */
.auth-form .form-group {
  margin-bottom: 14px;
}

.auth-form .form-control {
  height: 50px;
  border-radius: 12px;
  font-size: 15px;
  background: #f7f7f7;
  border: 1.5px solid #f0f0f0;
}

.auth-form .form-control:focus {
  background: #fff;
  border-color: var(--primary);
}

/* Input with icon */
.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-left {
  position: absolute;
  left: 14px;
  font-size: 16px;
  color: var(--text-light);
  pointer-events: none;
  z-index: 1;
}

.input-icon-right {
  position: absolute;
  right: 14px;
  font-size: 16px;
  color: var(--text-light);
  cursor: pointer;
  z-index: 1;
  padding: 4px;
}

.input-icon-wrap .form-control {
  padding-left: 42px;
}

.input-icon-wrap.has-right .form-control {
  padding-right: 42px;
}

/* --------------------------------------------------------------------------
   Auth Submit Button
   -------------------------------------------------------------------------- */
.auth-submit-btn {
  width: 100%;
  height: 52px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(255, 71, 87, 0.35);
  letter-spacing: 0.3px;
}

.auth-submit-btn:active {
  background: var(--primary-dark);
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.2);
}

.auth-submit-btn:disabled {
  background: #ffb3ba;
  box-shadow: none;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   Auth Footer Links
   -------------------------------------------------------------------------- */
.auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
}

.auth-footer a,
.auth-footer-link {
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-light);
  font-size: 13px;
}

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

/* --------------------------------------------------------------------------
   Social / WhatsApp Login Option
   -------------------------------------------------------------------------- */
.auth-social-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-whatsapp-btn {
  width: 100%;
  height: 50px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.auth-whatsapp-btn:active {
  background: #1da851;
  transform: scale(0.98);
}

/* --------------------------------------------------------------------------
   Multi-step Register Progress
   -------------------------------------------------------------------------- */
.register-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
}

.register-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  transition: all 0.3s ease;
}

.register-step-dot.active {
  width: 24px;
  background: var(--primary);
}

.register-step-dot.done {
  background: rgba(255, 71, 87, 0.4);
}

.register-step-title {
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Avatar Upload Preview
   -------------------------------------------------------------------------- */
.avatar-upload-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0 8px;
  margin-bottom: 16px;
}

.avatar-upload-preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg);
  border: 3px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s;
}

.avatar-upload-preview:hover,
.avatar-upload-preview:active {
  border-color: var(--primary);
}

.avatar-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
}

.avatar-upload-icon {
  font-size: 28px;
}

.avatar-upload-text {
  font-size: 12px;
}

.avatar-upload-hint {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Birthday / Date Picker Row
   -------------------------------------------------------------------------- */
.birthday-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.birthday-select {
  height: 50px;
  border-radius: 12px;
  border: 1.5px solid #f0f0f0;
  background: #f7f7f7;
  font-size: 14px;
  color: var(--text);
  padding: 0 10px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M5 6L0 0h10z' fill='%23999'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  outline: none;
  transition: border-color 0.2s;
}

.birthday-select:focus {
  border-color: var(--primary);
  background-color: #fff;
}

/* --------------------------------------------------------------------------
   Forget Password / Reset Page
   -------------------------------------------------------------------------- */
.auth-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-medium);
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 16px;
  border: none;
  background: none;
}

.auth-back-btn:active {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Terms & Privacy Notice
   -------------------------------------------------------------------------- */
.auth-terms {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  margin-top: 16px;
  line-height: 1.6;
  padding: 0 8px;
}

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