/* =============================================
   AUTH PAGE — Cyprus #004643 + Sand Dune #F0EDE5
   Fixed 100vh, no scroll, compact form
   ============================================= */

/* ===== LAYOUT ===== */
.auth-page {
  height: 100vh;
  max-height: 100vh;
  display: flex;
  overflow: hidden;
}

/* ===== LEFT PANEL ===== */
.auth-left {
  width: 60%;
  flex: none;
  background:
    radial-gradient(ellipse at 38% 36%,
      #005e5a 0%,
      #004e4b 20%,
      #004643 45%,
      #003330 75%,
      #002220 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 52px;
  position: relative;
  overflow: hidden;
}

/* subtle circle decorations */
.auth-left::before,
.auth-left::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(240, 237, 229, 0.05);
  pointer-events: none;
}
.auth-left::before {
  width: 380px;
  height: 380px;
  top: -120px;
  right: -100px;
}
.auth-left::after {
  width: 260px;
  height: 260px;
  bottom: -80px;
  left: -60px;
}

/* ===== LOGO ===== */
.auth-logo-wrap {
  position: absolute;
  top: 36px;
  left: 52px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  z-index: 2;
}

.auth-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.auth-powered {
  font-size: 0.7rem;
  color: rgba(240, 237, 229, 0.5);
  letter-spacing: 0.02em;
}

.auth-powered strong {
  color: rgba(240, 237, 229, 0.8);
  font-weight: 600;
}

/* ===== BOTTOM CONTENT ===== */
.auth-left-content {
  position: relative;
  z-index: 2;
  text-align: left;
  margin-bottom: 28px;
}

.auth-join-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240, 237, 229, 0.12);
  border: 1px solid rgba(240, 237, 229, 0.22);
  border-radius: 999px;
  padding: 9px 18px;
  margin-bottom: 22px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #f0ede5;
  backdrop-filter: blur(6px);
  cursor: default;
}

.auth-join-button-icon { font-size: 1.1rem; line-height: 1; }

.auth-main-heading {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  color: #f0ede5;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 12px;
}

.auth-main-subtext {
  font-size: 1rem;
  color: rgba(240, 237, 229, 0.65);
  line-height: 1.6;
  margin: 0;
}

/* ===== STEP CARDS ===== */
.auth-steps-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.auth-step-card {
  background: rgba(240, 237, 229, 0.1);
  border: 1px solid rgba(240, 237, 229, 0.16);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.auth-step-card:hover {
  transform: translateY(-3px);
  background: rgba(240, 237, 229, 0.15);
}

/* first card — active/white */
.auth-step-card:first-child {
  background: #f0ede5;
  border-color: #f0ede5;
}

.auth-step-card:first-child .auth-step-number {
  background: #004643;
  color: #f0ede5;
  border-color: transparent;
}

.auth-step-card:first-child .auth-step-title {
  color: #1a1a1a;
}

.auth-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(240, 237, 229, 0.18);
  border: 2px solid rgba(240, 237, 229, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #f0ede5;
  flex-shrink: 0;
}

.auth-step-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(240, 237, 229, 0.88);
  line-height: 1.4;
}

/* ===== RIGHT PANEL ===== */
.auth-right {
  width: 40%;
  flex: none;
  background: #f8f6f2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 36px 24px;
  overflow: hidden;
}

.auth-right > *,
.auth-right > form {
  width: 100%;
  max-width: 360px;
}

/* ===== FORM HEADER ===== */
.auth-form-header {
  text-align: center;
  margin-bottom: 22px;
}

.auth-form-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #004643;
  letter-spacing: -0.03em;
}

.auth-form-subtitle {
  font-size: 0.82rem;
  color: #6b7280;
  margin-top: 4px;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
  letter-spacing: -0.005em;
}

.form-input {
  width: 100%;
  padding: 9px 12px;
  font-size: 0.88rem;
  font-family: inherit;
  border: 1.5px solid #ddd8cf;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  outline: none;
}

.form-input:focus {
  border-color: #004643;
  box-shadow: 0 0 0 3px rgba(0, 70, 67, 0.1);
}

.form-input::placeholder {
  color: #b0a89e;
}

/* side-by-side */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-row .form-group {
  margin-bottom: 0;
}

/* ===== PHONE ===== */
.phone-input-wrapper {
  display: flex;
  gap: 7px;
}

.phone-country-select {
  width: 95px;
  flex-shrink: 0;
  padding: 9px 8px;
  font-size: 0.82rem;
  font-family: inherit;
  border: 1.5px solid #ddd8cf;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  outline: none;
  transition: border-color 0.18s ease;
}

.phone-country-select:focus {
  border-color: #004643;
}

.phone-input { flex: 1; }

/* ===== USERNAME ===== */
.username-input-wrapper { position: relative; }

.username-check-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #059669;
  font-size: 0.9rem;
  font-weight: 700;
  display: none;
}

/* ===== PASSWORD ===== */
.password-wrapper { position: relative; }

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}

.password-toggle:hover { color: #374151; }

.password-requirements {
  margin-top: 5px;
  font-size: 0.72rem;
  color: #6b7280;
  line-height: 1.5;
}

.requirement-label {
  background: #ede9e1;
  border: 1px solid #ddd8cf;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #374151;
  margin: 0 2px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-full  { width: 100%; }
.btn-lg    { padding: 11px 24px; font-size: 0.95rem; }

/* Primary — Cyprus green */
.btn-primary {
  background: #004643;
  color: #f0ede5;
  box-shadow: 0 2px 8px rgba(0, 70, 67, 0.3);
}

.btn-primary:hover {
  background: #003330;
  box-shadow: 0 4px 14px rgba(0, 70, 67, 0.4);
  transform: translateY(-1px);
}

.btn-primary:active  { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Google */
.btn-google {
  background: #ffffff;
  color: #374151;
  border: 1.5px solid #ddd8cf;
}

.btn-google:hover {
  background: #f8f6f2;
  border-color: #c8c2b8;
}

/* ===== DIVIDER ===== */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}

.auth-divider-line  { flex: 1; height: 1px; background: #ddd8cf; }
.auth-divider-text  { font-size: 0.75rem; font-weight: 500; color: #9ca3af; }

/* ===== FOOTER & LINKS ===== */
.auth-footer-link {
  text-align: center;
  margin-top: 12px;
  font-size: 0.8rem;
  color: #6b7280;
}

.auth-footer-link a {
  color: #004643;
  font-weight: 600;
  text-decoration: none;
}

.auth-footer-link a:hover { opacity: 0.75; }

.auth-forgot-link {
  font-size: 0.78rem;
  color: #004643;
  font-weight: 600;
  text-decoration: none;
}

.auth-forgot-link:hover { opacity: 0.75; }

/* ===== ERROR ===== */
.auth-error-msg {
  display: none;
  color: #dc2626;
  background: #fef2f2;
  border-left: 3px solid #dc2626;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.8rem;
  margin-top: 10px;
}

/* ===== TERMS ===== */
.auth-terms {
  text-align: center;
  font-size: 0.72rem;
  color: #9ca3af;
  margin-top: 12px;
  line-height: 1.5;
}

.auth-terms a { color: #004643; font-weight: 500; text-decoration: none; }
.auth-terms a:hover { text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .auth-left  { display: none; }
  .auth-right { width: 100%; padding: 40px 28px; }
}

@media (max-width: 480px) {
  .auth-right  { padding: 28px 18px; }
  .form-row    { grid-template-columns: 1fr; }
}
