@font-face {
  font-family: "AMBILE";
  src: url("/fonts/AMBILE.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "AMBILE Shadow";
  src: url("/fonts/AMBILE_Shadow.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  font-family: "AMBILE", sans-serif;
  color-scheme: dark;

  --bg: #0b0d10;
  --surface: #12161b;
  --surface-soft: #171c22;
  --text: #f6f7f8;
  --muted: #b6bec8;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "AMBILE", sans-serif;
  background:
    radial-gradient(
      circle at 50% 10%,
      rgba(245, 158, 11, 0.08),
      transparent 34rem
    ),
    var(--bg);
  color: var(--text);
  direction: rtl;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.015),
      transparent 30%
    );
}

main {
  width: min(92vw, 760px);
  min-height: 100vh;
  margin-inline: auto;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.card {
  position: relative;
  width: 100%;
  padding: clamp(34px, 6vw, 64px);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.025),
      rgba(255, 255, 255, 0.01)
    ),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  text-align: center;
  overflow: hidden;

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 15%;
  left: 15%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent),
    transparent
  );
  opacity: 0.8;
}

h1 {
  margin: 0 auto;
  max-width: 620px;

  font-family: "AMBILE Shadow", "AMBILE", sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

#app-intro {
  max-width: 580px;
  margin: 22px auto 0;

  font-family: "AMBILE", sans-serif;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  line-height: 1.9;
  color: var(--muted);
}

#google-button {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  direction: ltr;
}

#signed-in {
  margin-top: 30px;
}

#signed-in-message {
  margin: 0 0 18px;
  font-size: 1.2rem;
  line-height: 1.7;
}

button {
  font-family: "AMBILE", sans-serif;
}

#logout-button {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 22px;

  background: var(--surface-soft);
  color: var(--text);

  font-size: 1.05rem;
  cursor: pointer;

  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

#logout-button:hover {
  background: var(--accent-soft);
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}

#status {
  min-height: 1.5em;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

@media (max-width: 600px) {
  main {
    width: 100%;
    padding: 18px;
  }

  .card {
    padding: 36px 22px;
    border-radius: 22px;
  }

  h1 {
    font-size: 2.6rem;
    line-height: 1.3;
  }

  #app-intro {
    font-size: 1.15rem;
    line-height: 1.8;
  }

  #google-button {
    margin-top: 30px;
  }
}
