/* ========================================
   AUTH & PUBLIC PAGES
   Shared styles for Login, Register, Contact
   ======================================== */

.auth-page {
  background: #f5f6f8;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- Card Container ---- */
.auth-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  width: 100%;
  max-width: 460px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.auth-card-wide {
  max-width: 960px;
}

/* ---- Card Header ---- */
.auth-header {
  background: #012169;
  padding: 32px 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.auth-header::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.auth-header::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.auth-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.4em;
  color: #fff;
  position: relative;
  z-index: 1;
}

.auth-title {
  font-size: 1.4em;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  font-family: 'Inter', sans-serif;
  position: relative;
  z-index: 1;
}

.auth-subtitle {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

/* ---- Card Body ---- */
.auth-body {
  padding: 32px 36px;
}

/* ---- Form Elements ---- */
.auth-form-group {
  margin-bottom: 20px;
}

.auth-label {
  display: block;
  font-size: 0.8em;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.auth-req {
  color: #C8102E;
}

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

.auth-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.88em;
  pointer-events: none;
  z-index: 2;
}

.auth-input,
.auth-select {
  width: 100%;
  padding: 11px 14px 11px 42px;
  font-size: 0.9em;
  font-family: 'Inter', sans-serif;
  color: #1a2332;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  transition: all 0.2s;
  outline: none;
  box-sizing: border-box;
}

.auth-input:focus,
.auth-select:focus {
  border-color: #012169;
  box-shadow: 0 0 0 3px rgba(1, 33, 105, 0.08);
}

.auth-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.auth-input.is-invalid {
  border-color: #C8102E;
}

.auth-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 20px;
  padding-right: 36px;
}

.auth-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9em;
  font-family: 'Inter', sans-serif;
  color: #1a2332;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  transition: all 0.2s;
  outline: none;
  box-sizing: border-box;
  resize: vertical;
  min-height: 100px;
}

.auth-textarea:focus {
  border-color: #012169;
  box-shadow: 0 0 0 3px rgba(1, 33, 105, 0.08);
}

.auth-textarea::placeholder {
  color: #9ca3af;
}

/* ---- Error Message ---- */
.auth-error {
  display: block;
  font-size: 0.78em;
  color: #C8102E;
  margin-top: 4px;
  font-weight: 500;
}

/* ---- Checkbox ---- */
.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85em;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  user-select: none;
}

.auth-checkbox {
  display: none;
}

.auth-checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  position: relative;
}

.auth-checkbox:checked+.auth-checkbox-custom {
  background: #012169;
  border-color: #012169;
}

.auth-checkbox:checked+.auth-checkbox-custom::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
  position: absolute;
  top: 1px;
}

/* ---- Submit Button ---- */
.auth-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 24px;
  font-size: 0.95em;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  color: #fff;
  background: #012169;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 0.2px;
  margin-top: 24px;
}

.auth-submit-btn:hover {
  background: #001545;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(1, 33, 105, 0.25);
}

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

/* ---- Footer Link ---- */
.auth-footer {
  text-align: center;
  padding: 20px 36px;
  border-top: 1px solid #f3f4f6;
  background: #fafbfc;
}

.auth-footer-text {
  font-size: 0.85em;
  color: #6b7280;
  margin: 0;
}

.auth-footer-link {
  color: #012169;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-footer-link:hover {
  color: #C8102E;
  text-decoration: underline;
}

/* ---- Alerts ---- */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.85em;
  font-weight: 500;
}

.auth-alert i {
  margin-top: 2px;
  font-size: 1.1em;
}

.auth-alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.auth-alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ========================================
   CONTACT PAGE SPECIFIC
   ======================================== */

.contact-page {
  background: #f5f6f8;
  min-height: calc(100vh - 120px);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Banner */
.contact-banner {
  background: #012169;
  padding: 52px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.contact-banner::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 10%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

.contact-banner h1 {
  font-size: 1.8em;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  font-family: 'Inter', sans-serif;
  position: relative;
  z-index: 1;
}

.contact-banner p {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Contact layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
  padding: 36px 0 60px;
}

/* Info card */
.contact-info-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  height: fit-content;
}

.contact-info-card h2 {
  font-size: 1.15em;
  font-weight: 700;
  color: #1a2332;
  margin: 0 0 8px;
}

.contact-info-card>p {
  font-size: 0.88em;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 24px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid #f3f4f6;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  background: #eef2ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #012169;
  font-size: 0.95em;
  flex-shrink: 0;
}

.contact-info-label {
  display: block;
  font-size: 0.72em;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}

.contact-info-value {
  font-size: 0.88em;
  color: #1a2332;
  font-weight: 500;
  line-height: 1.5;
}

.contact-info-value a {
  color: #012169;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.contact-info-value a:hover {
  color: #C8102E;
}

/* Social icons */
.contact-social {
  display: flex;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
  margin-top: 4px;
}

.contact-social-link {
  width: 38px;
  height: 38px;
  background: #f3f4f6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  font-size: 1em;
  text-decoration: none;
  transition: all 0.2s;
}

.contact-social-link:hover {
  background: #012169;
  color: #fff;
  transform: translateY(-2px);
}

/* Form card */
.contact-form-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.contact-form-header {
  padding: 24px 32px;
  border-bottom: 1px solid #f3f4f6;
}

.contact-form-header h2 {
  font-size: 1.15em;
  font-weight: 700;
  color: #1a2332;
  margin: 0 0 4px;
}

.contact-form-header p {
  font-size: 0.85em;
  color: #9ca3af;
  margin: 0;
}

.contact-form-body {
  padding: 28px 32px;
}

.contact-form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.contact-form-row>.auth-form-group {
  flex: 1;
  margin-bottom: 0;
}

/* Map section */
.contact-map {
  border-radius: 14px;
  overflow: hidden;
  margin-top: 28px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

/* ========================================
   FORM ROW FOR AUTH PAGES
   ======================================== */

.auth-form-row {
  display: flex;
  gap: 16px;
}

.auth-form-row>.auth-form-group {
  flex: 1;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .auth-page {
    padding: 24px 16px;
  }

  .auth-header {
    padding: 24px 24px 22px;
  }

  .auth-body {
    padding: 24px 24px;
  }

  .auth-footer {
    padding: 16px 24px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    padding: 24px 0 40px;
  }

  .contact-form-row {
    flex-direction: column;
    gap: 0;
  }

  .contact-form-row>.auth-form-group {
    margin-bottom: 16px;
  }

  .contact-form-header,
  .contact-form-body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .contact-info-card {
    padding: 24px;
  }

  .auth-form-row {
    flex-direction: column;
    gap: 0;
  }
}