/* ── Brykto shared design system ──────────────────────────────────────────
   All pages link this file. Page-specific styles live in a small <style>
   block in the template itself. Never put layout or component definitions
   in template <style> blocks — only page-specific overrides or one-offs.
   Never use inline style="" attributes except for JS-driven display toggling.
   ─────────────────────────────────────────────────────────────────────── */

/* ── Custom properties ───────────────────────────────────────────────────── */
:root {
  --orange:        #FF5A14;
  --orange-hover:  #e04a0a;
  --orange-2:      #FF8E2B;
  --text:          #111827;
  --text-2:        #374151;
  --text-sm:       #6B7280;
  --text-xs:       #9CA3AF;
  --bg:            #F3F4F6;
  --border:        #E5E7EB;
  --radius:        0.625rem;
  --radius-lg:     1rem;
  --shadow-card:   0 1px 4px rgba(0,0,0,0.07), 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.12);

  --green:         #16A34A;
  --green-bg:      #F0FDF4;
  --green-border:  #BBF7D0;

  --amber:         #B45309;
  --amber-bg:      #FFFBEB;
  --amber-border:  #FDE68A;

  --red:           #B91C1C;
  --red-bg:        #FEF2F2;
  --red-border:    #FECACA;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── Logo ────────────────────────────────────────────────────────────────── */
.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.5px;
  text-decoration: none;
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 40px;
}

/* ── Form field ──────────────────────────────────────────────────────────── */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 13px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--orange); }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-xs); }

/* Select wrapper adds a custom arrow */
.select-wrap { position: relative; }
.select-wrap::after {
  content: '';
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-sm);
  pointer-events: none;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  width: 100%;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  transition: background 0.15s;
  text-decoration: none;
}
.btn:hover:not(:disabled) { background: var(--orange-hover); }
.btn:disabled { opacity: 0.45; cursor: default; }

.btn-outline {
  width: 100%;
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 11px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  transition: border-color 0.15s;
  text-decoration: none;
}
.btn-outline:hover { border-color: var(--text-sm); }
.btn-outline:disabled { opacity: 0.45; cursor: default; }

/* ── Message boxes ───────────────────────────────────────────────────────── */
.msg {
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
  display: none;
}
.msg.show   { display: block; }
.msg.error  { background: var(--red-bg);   border: 1px solid var(--red-border);   color: var(--red);   display: block; }
.msg.ok,
.msg.success{ background: var(--green-bg); border: 1px solid var(--green-border); color: var(--green); display: block; }
.msg.warning{ background: var(--amber-bg); border: 1px solid var(--amber-border); color: var(--amber); display: block; }

/* ── Verified / status boxes ─────────────────────────────────────────────── */
.box-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--green-bg);
  border: 1.5px solid var(--green-border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}

.box-warning {
  background: var(--amber-bg);
  border: 1.5px solid var(--amber-border);
  border-radius: var(--radius);
  padding: 14px;
  font-size: 13px;
  color: var(--amber);
  line-height: 1.6;
}
.box-warning strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

/* ── Collapsible ─────────────────────────────────────────────────────────── */
.collapsible-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sm);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.15s;
}
.collapsible-btn:hover { border-color: var(--text-sm); }

.collapsible-body {
  display: none;
  background: #F9FAFB;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-sm);
  line-height: 1.7;
}
.collapsible-body.open { display: block; }
.collapsible-body a { color: var(--orange); text-decoration: none; font-weight: 600; }
.collapsible-body ol { padding-left: 18px; }
.collapsible-body li { margin-bottom: 4px; }

/* ── Divider ─────────────────────────────────────────────────────────────── */
.divider {
  text-align: center;
  color: var(--text-sm);
  font-size: 12px;
  font-weight: 600;
  margin: 16px 0;
  position: relative;
}
.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 44%;
  height: 1px;
  background: var(--border);
}
.divider::before { left: 0; }
.divider::after  { right: 0; }

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes fadeIn  { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.spin { animation: spin 0.8s linear infinite; display: inline-block; }
.fade { animation: fadeIn 0.22s ease; }
