/* -----------------------------------------------------------------------------
   The Lounge - final mobile layout
----------------------------------------------------------------------------- */

@font-face {
  font-family: "AptosNarrow";
  src: url("/static/fonts/Aptos-Narrow.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --accent-orange: #ff6a00;
  --accent-orange-shadow: rgba(255, 106, 0, 0.35);
  --accent-blue: #65aef6;
  --accent-blue-2: #7cc2ff;
  --muted: #8f94a4;
  --border: #dedfe6;
  --text: #1f1f20;
  --hint: #bbbfc9;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.landing {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: var(--text);
  font-family: "AptosNarrow";
  display: flex;
  justify-content: center;
}

body.landing.lounge {
  align-items: flex-start;
}

.lounge-layout {
  width: min(420px, 100vw);
  margin: clamp(32px, 6vh, 90px) auto;
  padding: 0 clamp(20px, 6vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.brand-block {
  text-align: left;
}

.brand-overline {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: #7b7f8c;
  font-family: "AptosNarrow", sans-serif;
  font-style: italic;
  text-decoration: none;
  display: block;
}

.brand-overline:hover,
.brand-overline:focus-visible {
  color: #595c66;
}

.brand-logo {
  width: 220px;
  max-width: 100%;
  height: auto;
}

.brand-subtitle {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
}

.flash-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: -8px 0 4px;
}

.flash {
  margin: 0;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.8rem;
}

.flash-success {
  background: #ecf8ff;
  color: #1c4f65;
}

.flash-error {
  background: #fff3f0;
  color: #8c2a0a;
}

.flash-info {
  background: #f0f4ff;
  color: #1f2f66;
}

.tab-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2.5px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: #fff;
}

.tab-switch .tab {
  font-family: "AptosNarrow";
  flex: 1;
  border: none;
  border-radius: var(--radius-pill);
  padding: 6px 0;
  font-size: 1rem;
  font-weight: 200;
  color: #a0a3b0;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tab-switch .tab.is-active {
  background: var(--accent-orange);
  color: #fff;
}

.form-panels {
  display: flex;
  flex-direction: column;
}

.lounge-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  display: none;
}

.lounge-form.is-active {
  display: flex;
}

.input-field {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 42px;
  padding: 0px 22px;
  background: #fff;
  gap: 14px;
  min-height: 48px;
}

.input-field:focus-within {
  border-color: var(--accent-orange);
}

.input-field input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  background: transparent;
  color: var(--text);
}

.input-field input::placeholder {
  color: var(--hint);
}

.field-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b5bac9;
  padding: 0;
  flex-shrink: 0;
  background: transparent;
}

.field-icon--blank {
  visibility: hidden;
}

.field-icon img {
  width: 18px;
  height: 18px;
  display: block;
}

.field-icon-toggle {
  cursor: pointer;
  border: none;
  background: transparent;
}

.field-icon-toggle:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 2px;
  border-radius: 6px;
}

.forgot-line {
  margin: -4px 0 4px;
  text-align: right;
}

.forgot-line a {
  font-size: 0.95rem;
  color: #5d63ff;
  text-decoration: none;
}

.forgot-line a:hover,
.forgot-line a:focus-visible {
  text-decoration: underline;
}

.primary-btn {
  font-family: "AptosNarrow";
  border: none;
  border-radius: 44px;
  padding: 18px;
  font-size: 1.06rem;
  font-weight: 200;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-2));
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
}

.primary-btn:focus-visible {
  outline: 3px solid rgba(101, 174, 246, 0.45);
  outline-offset: 4px;
}

.terms-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-size: 0.95rem;
  color: #5d63ff;
}

.terms-row a {
  color: inherit;
  text-decoration: none;
}

.terms-row a:hover,
.terms-row a:focus-visible {
  text-decoration: underline;
}

.terms-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1.5px solid var(--border);
  accent-color: #5d63ff;
}

.terms-row input[type="checkbox"]:focus-visible {
  outline: 2px solid #5d63ff;
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 420px) {
  .lounge-layout {
    margin-top: clamp(18px, 4vh, 40px);
    padding-inline: clamp(16px, 5vw, 28px);
  }

  .brand-logo {
    width: 190px;
  }
}
