/* Navatera Riport 1.3 — the supplied FAKTOR login's typography and dimensions.
   Standalone stylesheet: templates/auth_base.html and all authentication pages.
   No remote fonts, frameworks or other external assets are required. */
:root {
  --green: #4caf50;
  --green-dark: #388e3c;
  --green-deep: #2e7d32;
  --deep: var(--green-deep);
  --pale: #e8f5e9;
  --bg: #f1f1f1;
  --text: #222;
  --muted: #666;
  --line: #ddd;
  --shadow: 0 2px 5px 0 rgba(0,0,0,.16), 0 2px 10px 0 rgba(0,0,0,.12);
}
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Verdana, sans-serif;
  font-size: 13px;
  line-height: 1.4;
}
body { overflow-x: hidden; }
a { color: var(--green-deep); }
.topbar {
  min-height: 64px;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1280px) / 2));
  box-shadow: var(--shadow);
}
.brand {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 27px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .05em;
  color: inherit;
}
.brand span { font-size: 14px; font-weight: 400; letter-spacing: 0; margin-left: 8px; opacity: .9; }
.page { max-width: 1280px; margin: 0 auto; padding: 19px 24px 52px; }
.card {
  position: relative;
  background: #fff;
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  border-radius: 18px;
  overflow: hidden;
}
/* The raised edges overlay the card; they do not reduce the form's width. */
.card::before, .card::after { content: ""; position: absolute; background: #9e9e9e; pointer-events: none; z-index: 3; }
.card::before { height: 7px; left: 0; right: 0; bottom: 0; border-radius: 0 0 14px 14px; }
.card::after { width: 7px; right: 0; top: 0; bottom: 0; border-radius: 0 14px 14px 0; }
.login-card, .setup-card { max-width: 540px; margin: 6vh auto; }
.setup-card { max-width: 650px; }
.auth-card { border-radius: 22px; }
h1 { font-family: "Segoe UI", Arial, sans-serif; font-size: 29px; font-weight: 400; margin: 0; line-height: 1.15; }
h2 { font-family: "Segoe UI", Arial, sans-serif; font-size: 22px; font-weight: 500; margin: 0 0 5px; line-height: 1.25; }
.lead { color: var(--muted); font-size: 15px; line-height: 1.45; }
small { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 8px; }
label { font-weight: 700; text-align: left; }
input, select {
  font: inherit;
  color: var(--text);
  width: 100%;
  min-height: 36px;
  border: 1px solid #aaa;
  padding: 7px 9px;
  background: #fff;
  border-radius: 12px;
}
input[type="hidden"], input[hidden] { display: none; }
input:focus, select:focus { outline: 3px solid #4caf5040; border-color: var(--green); }
.button {
  --press-edge: #8d8d8d;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border: 0;
  min-height: 36px;
  padding: 8px 15px;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--press-edge), 0 2px 4px #0002;
  transform: translate(0,0);
  transition: transform .08s ease, box-shadow .08s ease;
}
.button.primary { --press-edge: var(--green-deep); background: var(--green); color: #fff; }
.button.primary:hover { background: var(--green-dark); }
.button.secondary { --press-edge: #424242; background: #616161; color: #fff; }
.button:not(:disabled):active { transform: translate(3px,3px); box-shadow: 0 0 0 var(--press-edge), 0 1px 2px #0002; }
.button:disabled { opacity: .55; cursor: not-allowed; }
.wide { width: 100%; }
.center { text-align: center; }
.recovery-box { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
summary { cursor: pointer; color: var(--green-deep); font-weight: 700; }
.recovery-box p, .manual-key p { color: var(--muted); }
.alert { padding: 14px; margin: 12px 0; border-radius: 12px; }
.error { background: #ffebee; color: #b71c1c; }
.warning { background: #fff3e0; color: #774400; }
.setup-card > h1 { margin-bottom: 24px; }
.setup-step { max-width: 500px; margin: auto; padding: 16px; border: 1px solid #d5e7d6; border-right: 7px solid var(--green); border-bottom: 7px solid var(--green); border-radius: 18px; background: #fbfefb; }
.setup-step-heading { display: flex; align-items: center; gap: 13px; text-align: left; margin-bottom: 12px; }
.setup-step-heading p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.step-number { flex: 0 0 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-size: 23px; font-weight: 700; }
.qr-frame { display: inline-block; border: 8px solid #fff; border-radius: 14px; background: #fff; box-shadow: var(--shadow); margin: 3px auto 10px; }
.qr-frame img { display: block; max-width: 100%; }
.setup-arrow { font-size: 28px; color: var(--green); margin: 9px; }
.manual-key { margin-top: 6px; }
.manual-key code { word-break: break-all; }
.recovery-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0; }
.recovery-codes code { background: #eee; padding: 12px 7px; border-radius: 10px; font-size: 16px; font-weight: 700; }
.success-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; background: var(--green); color: #fff; font-size: 36px; }
.bottom-button { margin-top: 18px; }
.auth-card form label input { margin-top: 5px; }
.auth-card small { text-align: left; }
@media (max-width: 760px) {
  html, body { font-size: 15px; }
  .topbar { padding: 10px 12px; }
  .brand { font-size: 24px; }
  .brand span { display: block; margin-left: 0; font-size: 12px; }
  .page { padding: 16px 12px 48px; }
  input, select { font-size: 16px; min-height: 42px; }
  .button { min-height: 42px; }
}
@media (max-width: 560px) {
  h1 { font-size: 26px; }
  .card { padding: 16px; }
  .auth-card { border-radius: 18px; }
  .setup-step { padding: 13px 10px; }
  .recovery-codes { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }
@media print {
  .topbar, .button { display: none; }
  .page { padding: 0; }
  .card { box-shadow: none; }
  .card::before, .card::after { display: none; }
  .recovery-codes { grid-template-columns: 1fr 1fr; }
}
