/* ========== Global ========== */
body {
  font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: center;
  background: linear-gradient(160deg, white, #7cbfc8, #00a0a4, #007b7e);
}

/* ========== Layout ========== */
.signin-container {
  display: flex;
  width: 900px;
  max-width: 95%;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  overflow: hidden;
  gap: 2rem;
}

h1 {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 3rem);
}

p {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  line-height: 2rem;
}

/* === LOADER OVERLAY === */
/* Full-page overlay */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* stays above everything */
}

/* Circular spinner */
.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #e0f2f1; /* light teal background */
  border-top: 6px solid teal; /* teal accent */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Spinning animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Fade-out effect */
.fade-out {
  animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Left column (form side) */
.left-column {
  flex: 1;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #00a0a4;
  letter-spacing: 0.02rem;
}

#logo-link {
  text-decoration: none;
}

.left-column h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.left-column p {
  margin-top: 0.5rem;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #666;
}

/* Right column (branding/design side) */
.right-column {
  flex: 1;
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.image-container {
  border-radius: 0.5rem;
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.steps-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  margin: 0;
}

.steps-row p {
  margin: 0;
}

.steps-row button {
  margin: 0;
}

#previous-btn {
  background: none;
  color: #ddd;
  padding: 0;
}

#previous-btn:hover {
  color: #00a0a4;
}

.teal-card {
  position: absolute;
  inset: 0;
  background: rgba(37,117,252,0.6); /* overlay tint */
}

/* ========== Social Buttons ========== */
.row-social-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.row-social-buttons a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem; /* space between icon and text */
  padding: 0.5rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}


/* Facebook button: official blue background with white text */
.facebook-btn {
  background: #1877f2;
  color: #fff;
}

.facebook-btn:hover {
  background: #145dbf;
}

/* Icon sizing */
.row-social-buttons a i {
  font-size: 18px;
}


/* ========== Divider ========== */
.row-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #4d4d4d;
  margin-bottom: 0.5rem 0;
  font-size: 14px;
}

.row-divider::before,
.row-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ccc;
}

.row-divider:not(:empty)::before {
  margin-right: 0.75em;
}

.row-divider:not(:empty)::after {
  margin-left: 0.75em;
}

/* ========== Inputs ========== */
.row-inputs {
  flex-direction: column;
  gap: 0.5rem;
}

.row-inputs input {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  padding: clamp(0.6rem, 1vw, 1.25rem) clamp(1rem, 1.5vw, 1.5rem);
  border-radius: 1rem;
  border: 1px solid #ccc;
}

.row-inputs input:focus {
  border-color: #00a0a4;
  outline: none;
  box-shadow: 0 0 4px rgba(0, 123, 255, 0.2);
}

.phone-input {
  display: flex;
  align-items: center;
  border-radius: 0.75rem;
  padding: 0.5rem;
}

.phone-input .prefix {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-right: 0.5rem;
  color: #4d4d4d;
  font-size: 0.9rem;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#otp-btn {
  display: none;
}

#otp {
  max-width: 3rem;
  display: none;
}

#otp-timer {
  display: none;
}

.otp-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.otp-verification-row {
  margin-top: 0.5rem;
}

.otp-verified-message {
  margin-left: 1rem;
  color: green;
  display: none;
}

.otp-verified-message i {
  margin-right: 1rem;
}

.flag-circle {
  width: 1.75rem;
  height: auto;
  border-radius: 0.5rem;
  object-fit: cover;
}

.row-auth-method {
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.row-auth-method input {
  margin-right: 0.5rem;
}


/* ========== Login Button ========== */
.login-btn {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  background-color: #7cbfc8;
  color: white;
  border: none;
  border-radius: 1rem;
  padding: clamp(0.6rem, 1vw, 1.25rem) clamp(1rem, 1.5vw, 1.5rem);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.login-btn:hover {
  background: #007b7e;
}

.login-btn:active {
  transform: scale(0.98);
}

/* ========== Signup Row ========== */
.signup-row {
  text-align: center;
  margin-top: 1.2rem;
  color: #555;
  display: flex;
  flex-wrap: nowrap;
}

.signup-row a {
  color: #7cbfc8;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.signup-row a:hover {
  text-decoration: underline;
  color: #00a0a4;
}

.quick-links-row {
  display: flex;
  flex-direction: row;
}

.quick-links-row a {
  text-decoration: none;
  color: #ccc;
  transition: all 0.3s ease;
  margin-right: 1.5rem;
  cursor: pointer;
}

.quick-links-row a:hover {
  color: #4d4d4d;
}

.notification-card {
  position: absolute;
  top: -100px; /* hidden above the screen */
  right: 1.5rem;
  display: flex;
  flex-direction: row;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background: white;
  gap: 1rem;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  align-items: right;
  z-index: 10;
  opacity: 0; /* invisible by default */
  transition: all 0.4s ease; /* smooth slide + fade */
}

.notification-card.show {
  top: 1.5rem; /* visible position */
  opacity: 1; /* fade in */
}

.notification-card i {
  color: white;
}

.icon-circle {
  width: 1rem;
  height: 1rem;
  padding: 0.1rem;
  border-radius: 50%;
  background: #ff4d4f;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Success state */
.notification-card.success .icon-circle {
  background: #52c41a; /* green */
}

.notification-card.success .icon-circle i {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.notification-card.success .icon-circle i::before {
  content: "\f00c"; /* FontAwesome check (fa-check) */
}

#missing-names-warning {
  display: none;
}

#missing-names-warning i {
  width: 1rem;
  height: 1rem;
  padding: 0.1rem;
  border-radius: 50%;
  background: #ff4d4f;
  display: flex;
  flex-direction: row;
  color: white;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  body {
    margin: 0;
    padding: 0;
  }
  
  .signin-container {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    overflow: hidden;
    border-radius: 0;
    flex-direction: column;
  }
  
  .quick-links-row {
	  margin-top: 8rem;
  }

  .right-column {
    height: 200px;
  }

  .bg-image {
    display: none;
  }

  #phone {
    max-width: 7rem;
  }
}

