/* =============================================
   login.css — Welcome / login page
   Matches the Figma design: illustration top half, white bottom half.
   ============================================= */

.login-page {
  background: var(--color-bg-white);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ===== Top illustration zone ===== */
.login-illustration {
  flex: 0 0 45dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.login-illustration__img {
  object-fit: contain;
}

/* Fallback when the illustration PNG is missing */
.login-illustration--fallback {
  position: relative;
}
.login-illustration--fallback::after {
  content: '🔧';
  font-size: 80px;
  opacity: 0.35;
}

/* ===== Bottom white card ===== */
.login-bottom {
  flex: 1;
  background: var(--color-bg-white);
  display: flex;
  flex-direction: column;
  padding: 7% 6% 6%;
  gap: 0;
}

/* --- Heading block --- */
.login-hero {
  text-align: center;
  margin-bottom: 28px;
}

.login-hero__title {
  font-size: clamp(22px, 5.5vw, 26px);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  line-height: 1.25;
  margin-bottom: 6px;
}

.login-hero__subtitle {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  line-height: var(--line-height-md);
}

/* --- Action buttons --- */
.login-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

/* Base button */
.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  color: var(--color-text-primary);
  transition: opacity 0.15s;
  gap: 10px;
}

.login-btn:active {
  opacity: 0.82;
}

/* "Continue with my number" — black, full width, chevron right */
.login-btn--number {
  background: var(--color-text-primary);
  color: var(--color-bg-white);
  justify-content: center;
  padding: 16px 24px;
}

.login-btn__chevron {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

/* "Receive a SMS" — outline */
.login-btn--sms {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-light);
  justify-content: center;
}

/* Google / Apple — light green background */
.login-btn--social {
  background: #EAF6DC;
  color: var(--color-text-primary);
  justify-content: center;
  gap: 10px;
}

/* Google SVG icon */
.login-btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* --- "or" separator --- */
.login-separator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0;
}

.login-separator__line {
  flex: 1;
  height: 1px;
  background: #E0E0E0;
}

.login-separator__text {
  font-size: var(--font-size-sm);
  color: #999999;
  flex-shrink: 0;
}

/* --- Legal footer --- */
.login-legal {
  margin-top: auto;
  font-size: var(--font-size-sm);
  color: #AAAAAA;
  text-align: center;
  line-height: var(--line-height-lg);
  padding-top: 8px;
}
