/* =============================================
   login.css — Welcome / login page
   Top: cream illustration zone (CSS vinyl record). Bottom: paper card.
   ============================================= */

.login-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ===== Top illustration zone ===== */
.login-illustration {
  position: relative;
  flex: 0 0 38dvh;
  background: var(--color-bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.login-illustration__lang {
  position: absolute;
  top: 16px;
  right: 16px;
}

.login-illustration__brand {
  position: absolute;
  top: 16px;
  left: 20px;
}

/* --- Vinyl record drawn in pure CSS (no external image) --- */
.vinyl {
  position: relative;
  width: min(52vw, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    /* Grooves */
    repeating-radial-gradient(
      circle at center,
      var(--color-dark) 0,
      var(--color-dark) 2px,
      var(--color-ink) 3px,
      var(--color-ink) 4px
    );
  box-shadow: 12px 14px 0 var(--color-line);
  animation: vinyl-spin 8s linear infinite;
}

/* Label in the centre of the record */
.vinyl::before {
  content: '';
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Spindle hole */
.vinyl::after {
  content: '';
  position: absolute;
  inset: 48.5%;
  border-radius: 50%;
  background: var(--color-bg-surface);
}

@keyframes vinyl-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .vinyl { animation: none; }
}

/* ===== Bottom card ===== */
.login-bottom {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 7% 6% 6%;
  gap: 0;
}

/* --- Heading block --- */
.login-hero {
  text-align: center;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.login-hero__title {
  font-size: clamp(30px, 8vw, 36px);
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--color-text-primary);
}

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

/* --- 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: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-md);
  text-decoration: none;
  color: var(--color-text-primary);
  transition: background 0.15s, opacity 0.15s;
  gap: 10px;
}

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

/* "Continue with my number" — dark, full width, chevron right */
.login-btn--number {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-text-on-dark);
  padding: 16px 24px;
}

.login-btn--number:hover {
  background: var(--color-dark-hover);
}

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

/* "Continue with SMS" — outline */
.login-btn--sms {
  background: transparent;
  border-color: var(--color-line-strong);
}

/* Google / Apple — non-functional in the demo */
.login-btn--social {
  background: var(--color-bg-surface);
}

.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: var(--color-line);
}

.login-separator__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

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