/* Korpora — the sign-in cards, projects, account and plan pages. */

/* auth */
.auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.auth-main {
  flex: 1 0 auto;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}
.auth-card {
  position: relative;
  width: min(460px, 100%);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 30px 30px 26px 46px;
  box-shadow: var(--shadow);
}
/* the 32 mm system: a row of Ø5 holes 37 mm from the front edge of every cabinet side */
.auth-card::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 22px;
  bottom: 22px;
  width: 6px;
  background: radial-gradient(circle at 3px 3px, var(--rule-strong) 2.4px, transparent 2.9px) 0 0 /
    6px 32px repeat-y;
}
/* phone: here and not in app.css, which loads before this file and would lose at the same specificity */
@media (max-width: 640px) {
  .auth-card {
    padding: 24px 18px 20px 34px;
  }
  .auth-card::before {
    left: 12px;
  }
}
.auth-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.auth-card h1 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.lead-small {
  color: var(--ink-2);
}
.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 18px;
  font-size: 0.93rem;
}
.status-code {
  font: 600 3rem/1 var(--f-text);
  color: var(--gold);
  margin: 0 0 6px;
  font-variant-numeric: tabular-nums;
}
.error-details {
  margin: 12px 0 0;
  padding-left: 1.2em;
  font-size: 0.93rem;
  color: var(--red);
  overflow-wrap: anywhere;
}
.banned {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--red);
}
.banned .i {
  width: 30px;
  height: 30px;
}
.banned h1 {
  color: var(--ink);
  margin: 0;
}
/* a quoted text: the ban reason, and the withdrawal statement in the orders */
.ban-reason,
.statement {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--rule-strong);
  background: var(--panel);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.ban-reason {
  border-left-color: var(--red);
  background: var(--red-soft);
}
.ban-reason figcaption,
.statement figcaption {
  font-size: 0.85rem;
  color: var(--ink-2);
  margin-bottom: 4px;
}
.ban-reason blockquote,
.statement blockquote {
  margin: 0;
  font-weight: 550;
  white-space: pre-wrap;
}

/* projects */
.newproj {
  margin: 0 0 26px;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--panel);
}
.newproj h2 {
  font-size: 1.05rem;
}
.newproj-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.newproj-form .field {
  margin: 0;
  flex: 1 1 220px;
}
.projlist {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--panel);
}
.proj {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: 'main time' 'actions actions';
  gap: 6px 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
}
.proj:last-child {
  border-bottom: 0;
}
@media (min-width: 860px) {
  .proj {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: 'main time actions';
    align-items: center;
  }
}
.proj-main {
  grid-area: main;
  display: grid;
  gap: 2px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.proj-name {
  font-weight: 650;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}
.proj-main:hover .proj-name {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.proj-meta {
  color: var(--ink-2);
  font-size: 0.9rem;
}
/* the three dimensions read as one value: they wrap as a whole, never between the numbers */
.proj-meta .mono {
  white-space: nowrap;
}
.proj-time {
  grid-area: time;
  color: var(--ink-2);
  font-size: 0.86rem;
  white-space: nowrap;
}
.proj-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.proj-actions form {
  margin: 0;
}

/* plan & prices */
.planbox {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule-strong);
  background: var(--panel);
}
.planbox-big {
  font: 650 1.45rem/1.2 var(--f-text);
}
.prices td,
.prices th {
  vertical-align: middle;
}
.price-option {
  display: flex;
  gap: 10px;
  align-items: center;
}
.price-option input {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
}
.saving {
  color: var(--green);
  font-weight: 600;
}
/* phone: the per-month column goes (the discount already says it); the price with VAT stays in view */
@media (max-width: 480px) {
  .prices th:nth-child(3),
  .prices td:nth-child(3) {
    display: none;
  }
  .prices th,
  .prices td {
    padding-inline: 8px;
  }
  .price-option {
    gap: 8px;
  }
  .saving {
    display: block;
    white-space: nowrap;
  }
}
.recovery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}
.recovery li {
  font: 500 1.05rem/1 var(--f-mono);
  padding: 10px;
  text-align: center;
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius);
  background: var(--panel-2);
  letter-spacing: 0.04em;
}
.qr {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
@media (max-width: 560px) {
  .qr {
    grid-template-columns: minmax(0, 1fr);
  }
}
.qr img {
  width: 232px;
  height: 232px;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: #fff;
  image-rendering: pixelated;
}
.secret {
  font: 500 0.95rem/1.4 var(--f-mono);
  word-break: break-all;
  background: var(--panel-2);
  padding: 8px 10px;
  border-radius: var(--radius);
}
