/* Samglia account: design A ("Samglia Club"): teal leather, linen, glossy amber. */
:root {
  --ink: #1C2321; --muted: #59615E; --teal: #0F4A44; --on: #F4EFE6; --on-muted: #BCD1CD;
  --amber-text: #2A1A00; --amber-dark: #7A5200; --line: #CFC6B5; --wrong: #7E3415;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 16px/1.45 Inter, "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--ink);
  background-color: #ECE6DA;
  background-image: repeating-linear-gradient(0deg, rgba(60,45,20,.035) 0 1px, transparent 1px 3px),
                    repeating-linear-gradient(90deg, rgba(60,45,20,.03) 0 1px, transparent 1px 4px);
  display: flex; justify-content: center; align-items: flex-start;
}
.sheet { width: 100%; max-width: 440px; min-height: 100vh; background: transparent; }
@media (min-width: 560px) {
  body { align-items: center; padding: 40px 16px; }
  .sheet { min-height: 0; border-radius: 20px; overflow: hidden; background: rgba(255,255,255,.35);
           box-shadow: 0 2px 4px rgba(40,30,10,.15), 0 16px 40px rgba(40,30,10,.18); }
}
.leather {
  position: relative; color: var(--on); padding: 28px 24px 30px; overflow: hidden;
  background-color: var(--teal);
  background-image: linear-gradient(rgba(255,255,255,.10), rgba(255,255,255,0) 50%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 .04  0 0 0 0 .03  0 0 0 .9 -.3'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='.55'/></svg>");
}
.stitch { position: absolute; inset: 6px; border: 1.5px dashed rgba(247,203,92,.42); border-radius: 3px; pointer-events: none; }
.wordmark { position: relative; display: flex; align-items: baseline; gap: 6px; }
.wordmark .name { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.wordmark .tag { font-size: 10px; font-weight: 700; letter-spacing: .16em; color: #F7CB5C; }
.leather h1 { position: relative; margin: 18px 0 6px; font-size: 30px; line-height: 36px; font-weight: 800; }
.leather .sub { position: relative; margin: 0; font-size: 15px; color: var(--on-muted); }
.body { padding: 22px 20px 28px; display: flex; flex-direction: column; gap: 14px; }
.view { display: flex; flex-direction: column; gap: 14px; }
.view[hidden], [hidden] { display: none !important; }
form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
input[type=email], input[type=password], input[type=text] {
  height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  box-shadow: inset 0 2px 3px rgba(40,30,10,.12); font: inherit; font-size: 16px; color: var(--ink);
}
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #D99A1E; outline-offset: 2px; }
input.code { font-size: 26px; letter-spacing: .3em; font-weight: 700; text-align: center; }
.hint { font-weight: 400; font-size: 13px; color: var(--muted); }
.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: #D99A1E; }
.gloss {
  height: 52px; border-radius: 12px; border: 1px solid #B07A10; cursor: pointer; font: inherit; font-size: 17px; font-weight: 700;
  color: var(--amber-text); background: linear-gradient(#F8D06A, #E2A72A 55%, #CF9216);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 2px 0 #9C6B0C, 0 4px 10px rgba(0,0,0,.18);
}
.gloss:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 1px 0 #9C6B0C; }
.gloss[disabled] { opacity: .6; cursor: progress; }
.plain {
  height: 46px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; font: inherit; font-weight: 600;
  background: linear-gradient(#fff, #F3EEE5); box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(40,30,10,.15); color: var(--ink);
}
.link { border: none; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--teal); cursor: pointer; text-decoration: underline; }
a { color: var(--teal); font-weight: 700; }
.switch { margin: 4px 0 0; text-align: center; font-size: 15px; color: var(--muted); }
.lead { margin: 0; font-size: 15px; line-height: 22px; }
.alert { margin: 0; padding: 12px 14px; border-radius: 12px; background: #F6E2D8; border: 1px solid #C47A55; color: var(--wrong); font-size: 14px; }
.alert.ok { background: #E1EFE9; border-color: #4E8B76; color: #1F5A47; }
.demo { margin: 0; padding: 10px 14px; border-radius: 12px; background: #FCEFC8; border: 1px solid #B9861A; color: var(--amber-dark); font-size: 14px; }
.wait { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: 16px; color: var(--muted); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #D8D0C1; border-top-color: #D99A1E; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.foot { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 18px 0 0; font-size: 12px; color: var(--muted); }
.lock { width: 10px; height: 8px; border: 1.6px solid currentColor; border-radius: 2px; position: relative; margin-top: 4px; }
.lock::before { content: ""; position: absolute; left: 1px; top: -7px; width: 5px; height: 6px; border: 1.6px solid currentColor; border-bottom: none; border-radius: 4px 4px 0 0; }
