/* ===========================================================================
   ROUNDER GATE — brand tokens (matched to rounder.agency)
   Primary #2ebaa5 · ink #211915 · type Muli · 8px radius · soft Stripe shadow.
   To re-skin, edit the --brand-* values below and swap _gate/logo.svg.
   ===========================================================================*/
@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@300;600;700&display=swap');

:root {
  --brand-primary:   #2ebaa5;  /* teal — primary action / accent   */
  --brand-primary-2: #2b73b1;  /* blue — used with teal in the rule */
  --brand-ink:       #211915;  /* wordmark ink / headings           */
  --brand-text:      #333333;  /* body text                         */
  --brand-muted:     rgba(0,0,0,.55);
  --brand-bg-1:      #ffffff;
  --brand-bg-2:      #eef5f4;  /* subtle teal-tinted page wash       */
  --brand-panel:     #ffffff;
  --brand-line:      #e9ecef;
  --brand-danger:    #b23b2e;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(33,25,21,.05), 0 4px 10px -6px rgba(33,25,21,.12);
  --shadow-card: 0 1px 2px rgba(33,25,21,.05), 0 16px 32px -22px rgba(33,25,21,.18);
  --font: 'Muli','Mulish',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --mono: ui-monospace,'SF Mono','Cascadia Code',Menlo,monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0; min-height: 100vh;
  display: grid; place-items: center; padding: 24px;
  font-family: var(--font); font-weight: 300; font-size: 1.05em;
  color: var(--brand-text);
  background: radial-gradient(1000px 520px at 50% -8%, var(--brand-bg-2) 0%, var(--brand-bg-1) 62%);
}

.card {
  position: relative; overflow: hidden;
  width: 100%; max-width: 384px;
  background: var(--brand-panel);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  padding: 36px 32px 30px;
  box-shadow: var(--shadow-card);
}
/* Signature: the teal→blue rule echoes the site's #blog gradient. */
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(to left, var(--brand-primary), var(--brand-primary-2));
}

.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.brand img { height: 44px; width: auto; display: block; }
.brand .wordmark { font-weight: 700; letter-spacing: .2px; font-size: 20px; color: var(--brand-ink); }

h1 { font-size: 19px; font-weight: 700; color: var(--brand-ink); margin: 0 0 5px; }
.sub { color: var(--brand-muted); font-size: 14px; margin: 0 0 22px; line-height: 1.5; }

/* Which project the client is opening — small technical tag in brand teal. */
.project-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: #1f8576;
  background: rgba(46,186,165,.12);
  border: 1px solid rgba(46,186,165,.32);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 22px;
}
.project-tag::before { content: "●"; font-size: 8px; color: var(--brand-primary); }

label { display: block; font-size: 13px; font-weight: 600; color: var(--brand-muted); margin: 16px 0 6px; }

input[type=text], input[type=password] {
  width: 100%; height: 44px; padding: 0 14px; font-family: inherit; font-size: 15px;
  color: var(--brand-ink); background: #fff;
  border: 1px solid var(--brand-line); border-radius: var(--radius-sm);
  transition: border-color .2s ease;
}
input::placeholder { color: rgba(0,0,0,.35); }
input:focus { outline: none; border-color: var(--brand-primary); }

/* Primary button. */
button {
  width: 100%; margin-top: 26px; height: 44px;
  font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: .025em;
  color: #fff; background: var(--brand-primary);
  border: 0; border-radius: var(--radius-sm); cursor: pointer;
  box-shadow: var(--shadow);
  transition: filter .15s ease, transform .15s ease;
}
button:hover { filter: brightness(1.04); }
button:active { transform: translateY(1px); }
button:focus-visible { outline: 3px solid var(--brand-primary-2); outline-offset: 2px; }

.alert {
  margin: 18px 0 0; padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 13.5px; line-height: 1.45;
  color: #842029; background: #fdeceb; border: 1px solid #f3c7c3;
}

.foot { margin-top: 24px; text-align: center; color: var(--brand-muted); font-size: 12px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Wrong-password feedback: a short shake on the card. */
@keyframes shake {
  10%,90%{transform:translateX(-1px)} 20%,80%{transform:translateX(2px)}
  30%,50%,70%{transform:translateX(-5px)} 40%,60%{transform:translateX(5px)}
}
.card.shake { animation: shake .5s cubic-bezier(.36,.07,.19,.97) both; }
@media (prefers-reduced-motion: reduce){ .card.shake{ animation:none; } }
