/* ════════════════════════════════════════════════════════════════
   PURTA-I-NET PREMIUM AUTHENTICATION UI/UX SPECIFICATION
   (Login, Register & Account Recovery Views)
   ════════════════════════════════════════════════════════════════ */

.auth-page-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
  box-sizing: border-box;
  background: 
    radial-gradient(circle at 15% 15%, rgba(152, 27, 39, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(107, 15, 26, 0.06) 0%, transparent 45%),
    #f8fafc;
  position: relative;
  overflow-x: hidden;
}

/* Background Ambient Orbs */
.auth-page-wrapper::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(152, 27, 39, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.auth-page-wrapper::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(107, 15, 26, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

/* Auth Container */
.auth-container {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-container.login-mode {
  max-width: 430px;
}

/* Floating Card Container */
.auth-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08), 0 4px 16px rgba(15, 23, 42, 0.03);
  position: relative;
  overflow: visible;
  animation: authCardEntrance 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authCardEntrance {
  from { opacity: 0; transform: scale(0.97) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Top Red Accent Notch */
.auth-card-notch {
  width: 58px;
  height: 5px;
  background: linear-gradient(135deg, var(--primary-color, #981b27) 0%, var(--primary-dark, #6b0f1a) 100%);
  border-radius: 0 0 6px 6px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 2px 6px rgba(152, 27, 39, 0.3);
}

/* ════════════════════════════════════════════════════════════════
   1. LOGIN VIEW ("WELCOME BACK")
   ════════════════════════════════════════════════════════════════ */
.login-card-body {
  padding: 38px 34px 28px;
  text-align: center;
  position: relative;
}

/* Official SVG Logo Integration */
.auth-brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.auth-brand-logo-img {
  width: 175px;
  height: auto;
  max-height: 58px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: transform 0.2s ease;
}

.auth-brand-logo-img:hover {
  transform: scale(1.02);
}

.login-title-heading {
  font-size: 22px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 20px;
  letter-spacing: -0.4px;
}

/* Form Controls */
.auth-form-group {
  margin-bottom: 14px;
  text-align: left;
  position: relative;
}

.auth-input-box {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.auth-input-box:focus-within {
  border-color: var(--primary-color, #981b27);
  background: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(152, 27, 39, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.auth-input-box.has-error {
  border-color: #ef4444;
  background: #fef2f2;
}

.auth-input-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color, #981b27);
  font-size: 14px;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.auth-input-box:focus-within .auth-input-icon {
  color: var(--primary-color, #981b27);
}

.auth-input-box input, .auth-input-box textarea {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  padding: 0 12px 0 0;
  height: 40px;
  font-size: 12.5px;
  color: #1e293b;
  font-weight: 500;
  width: 100%;
}

.auth-input-box input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.auth-eye-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 0 12px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: color 0.15s ease;
}

.auth-eye-btn:hover {
  color: var(--primary-color, #981b27);
}

.auth-clear-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 0 6px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: color 0.15s ease;
}

.auth-clear-btn:hover {
  color: #ef4444;
}

.auth-error-msg {
  font-size: 10.5px;
  font-weight: 600;
  color: #ef4444;
  margin-top: 3px;
  padding-left: 4px;
  display: block;
}

/* Action Buttons */
.auth-btn-primary {
  width: 100%;
  height: 42px;
  background: linear-gradient(135deg, var(--primary-color, #981b27) 0%, var(--primary-dark, #6b0f1a) 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(152, 27, 39, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  margin-top: 6px;
}

.auth-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(152, 27, 39, 0.38);
}

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

.auth-divider {
  display: flex;
  align-items: center;
  margin: 18px 0;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 600;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
  padding: 0 10px;
}

.auth-btn-secondary {
  width: 100%;
  height: 40px;
  background: #ffffff;
  border: 1.5px solid #fca5a5;
  color: var(--primary-color, #981b27);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.18s ease;
}

.auth-btn-secondary:hover {
  background: #fef2f2;
  border-color: var(--primary-color, #981b27);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(152, 27, 39, 0.08);
}

/* Footer & Dots */
.auth-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 11px;
  color: #64748b;
}

.auth-footer-link {
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s ease;
}

.auth-footer-link:hover {
  color: var(--primary-color, #981b27);
}

.auth-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 14px;
}

.auth-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: all 0.2s ease;
}

.auth-dot.active {
  background: var(--primary-color, #981b27);
  width: 8px;
  height: 8px;
}

/* ════════════════════════════════════════════════════════════════
   2. REGISTER VIEW ("CREATE ACCOUNT")
   ════════════════════════════════════════════════════════════════ */
.reg-card-body {
  padding: 24px 30px 20px;
}

.reg-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 14px;
  margin-bottom: 18px;
  gap: 14px;
}

.reg-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.reg-logo-img {
  width: 140px;
  height: auto;
  max-height: 44px;
  object-fit: contain;
}

.reg-title-wrap h2 {
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 2px;
  letter-spacing: -0.3px;
}

.reg-title-wrap p {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin: 0;
}

.reg-login-pill-btn {
  background: #ffffff;
  border: 1.5px solid #fca5a5;
  color: var(--primary-color, #981b27);
  padding: 5px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.reg-login-pill-btn:hover {
  background: #fef2f2;
  border-color: var(--primary-color, #981b27);
  color: var(--primary-color, #981b27);
  transform: translateY(-1px);
}

/* Section Group Headings */
.reg-section-label {
  font-size: 10.5px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-bottom: 3px;
  border-bottom: 1px dashed #e2e8f0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.reg-field-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.reg-field-label .required-star {
  color: #ef4444;
  font-weight: 800;
}

/* Custom Location Inputs with City Popover */
.reg-custom-select-box {
  cursor: pointer;
  user-select: none;
}

.reg-city-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.04);
  z-index: 150;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: authCardEntrance 0.15s ease;
}

.reg-city-search-wrap {
  padding: 6px 8px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.reg-city-search-input {
  width: 100%;
  border: 1px solid #cbd5e1 !important;
  border-radius: 5px !important;
  padding: 4px 8px !important;
  font-size: 11.5px !important;
  height: 28px !important;
  background: #ffffff !important;
}

.reg-city-list {
  max-height: 140px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reg-city-item {
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.12s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reg-city-item:hover {
  background: #fef2f2;
  color: var(--primary-color, #981b27);
  font-weight: 600;
  padding-left: 15px;
}

.reg-city-item.selected {
  background: #fef2f2;
  color: var(--primary-color, #981b27);
  font-weight: 700;
}

.reg-disabled-input {
  background: #f1f5f9 !important;
  color: #64748b !important;
  cursor: not-allowed;
}

/* Register Action Bottom Bar */
.reg-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 10px;
}

.reg-signin-link {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s ease;
}

.reg-signin-link:hover {
  color: var(--primary-color, #981b27);
}

.reg-submit-btn {
  background: linear-gradient(135deg, var(--primary-color, #981b27) 0%, var(--primary-dark, #6b0f1a) 100%);
  color: #ffffff;
  border: none;
  padding: 7px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(152, 27, 39, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.reg-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(152, 27, 39, 0.35);
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .auth-page-wrapper {
    padding: 14px 10px;
  }

  .login-card-body {
    padding: 26px 20px 22px;
  }

  .reg-card-body {
    padding: 20px 16px 16px;
  }

  .reg-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .reg-login-pill-btn {
    align-self: flex-start;
  }

  .reg-bottom-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .reg-signin-link {
    justify-content: center;
  }
}
