/* Flexora - the account page.

   Loaded after style.css and home.css, which own the colour tokens, the dark
   scheme, the language switch and the shared header. Only the sign-in card and
   its form live here, so nothing on the landing page moves when this changes. */

.auth-wrap {
  max-width: 460px;
  margin: 0 auto;
  padding: 56px 22px 90px;
}

.auth-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg);
  box-shadow: var(--card-shadow);
  padding: 32px 28px;
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.auth-card .sub { margin: 0 0 26px; font-size: 14.5px; color: var(--muted); }

/* ---------- sign in / sign up switch ---------- */

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--soft-line);
}
.tabs button {
  /* min-height rather than height: the Georgian labels run longer than the
     English they were laid out against, and a pill that cannot grow clips
     them instead of wrapping. */
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
}
.tabs button[aria-selected="true"] {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(16, 24, 32, .10);
}

/* ---------- provider buttons ---------- */

.provider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  text-align: center;
}
.provider:hover { border-color: var(--forest); }
.provider svg { width: 18px; height: 18px; flex: none; }

.or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 12px;
  color: var(--muted);
}
.or::before,
.or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- the form ---------- */

.field { margin-bottom: 16px; }
.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--body);
}
.field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.field input:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(11, 110, 60, .12);
}
.field .hint { margin: 7px 0 0; font-size: 12px; color: var(--muted); }

.submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  text-align: center;
}
.submit:hover:not(:disabled) { opacity: .92; }
.submit:disabled { opacity: .55; cursor: default; }

@media (prefers-color-scheme: dark) {
  .submit { background: var(--emerald); }
}

.linkrow {
  margin: 16px 0 0;
  text-align: center;
  font-size: 13.5px;
}
.linkrow a, .linkrow button.asLink {
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  text-decoration: none;
}
.linkrow a:hover, .linkrow button.asLink:hover { text-decoration: underline; }

/* ---------- messages ----------

   One element for both outcomes, because a page that can show an error and a
   success at the same time will eventually show a stale one next to a fresh
   one and leave the reader to guess which happened. */

.msg {
  margin: 0 0 20px;
  padding: 13px 15px;
  border-radius: 13px;
  font-size: 14px;
  line-height: 1.55;
}
.msg.bad { background: #fdeceb; border: 1px solid #f6cdc9; color: #96271d; }
.msg.good { background: var(--soft); border: 1px solid var(--soft-line); color: var(--forest); }
.msg[hidden] { display: none; }

@media (prefers-color-scheme: dark) {
  .msg.bad { background: #2a1512; border-color: #5a2a22; color: #f2a79d; }
  .msg.good { color: var(--mint); }
}

/* ---------- signed in ---------- */

.who {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.who .av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--soft);
  border: 1px solid var(--soft-line);
  color: var(--forest);
  font-weight: 800;
  font-size: 17px;
  text-transform: uppercase;
}
/* min-width:0 so a long address wraps inside the row instead of pushing the
   card wider than its container. */
.who .id { min-width: 0; }
.who .id b { display: block; color: var(--ink); font-size: 15px; word-break: break-word; }
.who .id span { font-size: 13px; color: var(--muted); }

.status {
  padding: 18px 20px;
  border-radius: 17px;
  border: 1px solid var(--line);
  background: var(--soft);
  margin-bottom: 20px;
}
.status .lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
.status .val {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
}
.status .until { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.status.on { border-color: var(--forest); }

@media (prefers-color-scheme: dark) {
  .status.on { border-color: var(--mint); }
}

/* ---------- get the app ----------

   Someone who signed up on the website does not have Flexora yet, and the
   account on its own does nothing for them until they do. */

.getapp {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  max-width: 460px;
  margin: var(--s-5) auto 0;
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  box-shadow: var(--e-1);
  text-decoration: none;
  color: var(--body);
}
.getapp:hover { border-color: var(--forest); }
.getapp .mark {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
}
.getapp .mark svg { width: 20px; height: 20px; }
/* min-width:0 so the Georgian line wraps inside the row rather than widening it */
.getapp .txt { min-width: 0; font-size: var(--t-small); }
.getapp .txt b { display: block; color: var(--ink); font-size: 14.5px; font-weight: 700; }
.getapp .arrow { margin-left: auto; flex: none; width: 18px; height: 18px; color: var(--muted); }
