/* ============================================
   Xummer eSIM – Auth Specific Styles
   (Login & Register)
   ============================================ */

body.auth-page {
  background-color: #f8fafc;
  /* Very light slate for premium contrast */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.auth-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  /* Soft, elevated shadow */
  padding: 48px 40px;
}

@media (max-width: 575.98px) {
  .auth-wrapper {
    padding: 20px 15px;
    align-items: flex-start;
  }

  .auth-card {
    padding: 40px 24px;
    border-radius: 20px;
    box-shadow: none;
    /* Flatter on mobile */
    background: transparent;
    /* Seamless blend on mobile */
  }

  body.auth-page {
    background-color: #ffffff;
  }
}

.auth-logo {
  height: 70px;
  display: block;
  margin: 0 auto 16px auto;
}

.auth-title {
  font-weight: 800;
  color: var(--navy);
  font-size: 28px;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.auth-subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 32px;
  font-size: 15px;
}

/* Form Styles */
.form-floating>.form-control:focus~label::after,
.form-floating>.form-control:not(:placeholder-shown)~label::after {
  background-color: transparent !important;
}

.auth-input {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 1rem 1.25rem;
  font-size: 16px;
  transition: all 0.2s ease;
  background-color: #f8fafc;
}

.auth-input:focus {
  background-color: #ffffff;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 105, 8, 0.1);
  outline: none;
}

.phone-input-row {
  display: grid;
  grid-template-columns: minmax(160px, 46%) minmax(0, 1fr);
  gap: 10px;
}

.phone-country-select {
  min-width: 0;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background-color: #f8fafc;
  font-size: 14px;
  padding: 0.85rem 2.1rem 0.85rem 0.8rem;
}

.phone-country-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 105, 8, 0.1);
}

#phone-validation:empty {
  display: none;
}

@media (max-width: 420px) {
  .phone-input-row {
    grid-template-columns: 1fr;
  }
}

/* Primary Button */
.btn-auth-primary {
  width: 100%;
  background-color: var(--navy);
  color: #ffffff;
  font-weight: 700;
  border-radius: 12px;
  padding: 14px 24px;
  border: none;
  font-size: 16px;
  transition: all 0.2s ease;
}

.btn-auth-primary:hover {
  background-color: #0d162a;
  /* Darker navy */
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(17, 28, 53, 0.15);
}

.btn-auth-primary:disabled {
  background-color: #cbd5e1;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 32px 0;
  color: #94a3b8;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #e2e8f0;
}

.auth-divider::before {
  margin-right: 16px;
}

.auth-divider::after {
  margin-left: 16px;
}

/* Social Buttons */
.btn-social {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  margin-bottom: 12px;
}

.btn-social i {
  font-size: 20px;
}

.btn-google {
  background-color: #ffffff;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.btn-google:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

.btn-google img {
  width: 20px;
  /* SVG icon substitute for font icon if needed */
}

.btn-apple {
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}

.btn-apple:hover {
  background-color: #1a1a1a;
}

.btn-facebook {
  background-color: #1877F2;
  color: #ffffff;
  border: 1px solid #1877F2;
}

.btn-facebook:hover {
  background-color: #166fe5;
}

/* Link styling */
.auth-link {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
}

.auth-link:hover {
  text-decoration: underline;
}

/* OTP Specific Styles */
.otp-container {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.otp-input {
  width: 50px;
  height: 60px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  transition: all 0.2s;
  color: var(--navy);
  padding: 0;
}

.otp-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 105, 8, 0.1);
  outline: none;
}

/* State Management */
.auth-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.auth-step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom Checkbox */
.custom-checkbox .form-check-input {
  width: 1.25em;
  height: 1.25em;
  border-color: #cbd5e1;
  cursor: pointer;
}

.custom-checkbox .form-check-input:checked {
  background-color: var(--orange);
  border-color: var(--orange);
}

.custom-checkbox .form-check-label {
  font-size: 14px;
  color: #475569;
  cursor: pointer;
  padding-top: 2px;
}
