/* Vyntez Account sign-in pages. Parent brand: Vyntez Solutions purple, Plus Jakarta Sans. */
:root {
  --brand-1: #7C22E2;
  --brand-2: #4A10C8;
  --brand: #5B17D0;
  --bg: #F6F4FB;
  --card: #FFFFFF;
  --text: #1F1D2B;
  --muted: #625D75;
  --line: #E2DDF0;
  --field: #FFFFFF;
  --focus: rgba(124, 34, 226, .28);
  --error-bg: #FDECEC;
  --error-text: #A1221F;
  --ok-bg: #E8F6EE;
  --ok-text: #17663A;
  --dev-bg: #FFF6DB;
  --dev-text: #7A5300;
  --shadow: 0 1px 2px rgba(31, 29, 43, .06), 0 12px 32px rgba(74, 16, 200, .08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #B58CFF;
    --bg: #121019;
    --card: #1C1926;
    --text: #EEEAF7;
    --muted: #A49DB8;
    --line: #322D42;
    --field: #15121E;
    --focus: rgba(181, 140, 255, .32);
    --error-bg: #3A1A1C;
    --error-text: #FFB4AE;
    --ok-bg: #133022;
    --ok-text: #96E0B4;
    --dev-bg: #3A2F12;
    --dev-text: #FFD98A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  gap: 20px;
}

.card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 36px 28px;
  box-shadow: var(--shadow);
}
.card.center { text-align: center; }
.card.center .brand { justify-content: center; }

@media (max-width: 480px) {
  .shell { justify-content: flex-start; padding-top: 20px; }
  .card { padding: 28px 20px 22px; border-radius: 16px; }
}

.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.brand b {
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (prefers-color-scheme: dark) { .brand b { background: none; color: var(--brand); } }

h1 { font-size: 24px; line-height: 1.25; margin: 0 0 6px; letter-spacing: -.02em; }
.lead { margin: 0 0 20px; color: var(--muted); }
.lead strong { color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.form { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span:first-child { font-weight: 600; font-size: 14px; }
.field small { color: var(--muted); font-size: 12.5px; }

input[type=text], input[type=email], input[type=password] {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--field);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--focus); }
input.code { font-size: 22px; letter-spacing: .3em; font-weight: 600; text-align: center; }

.pw { position: relative; display: block; }
.pw input { padding-right: 70px; }
.reveal {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 0; background: none; color: var(--brand); font: inherit; font-weight: 600; font-size: 13px;
  padding: 6px 8px; cursor: pointer; border-radius: 8px;
}
.reveal:focus-visible { box-shadow: 0 0 0 3px var(--focus); outline: none; }

.check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand-1); }

.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: transparent; color: var(--text);
  transition: transform .05s, filter .15s, background .15s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--focus); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.primary { border: 0; color: #fff; background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); }
.form > .btn.primary { width: 100%; margin-top: 4px; }

button.link { border: 0; background: none; padding: 0; font: inherit; color: var(--brand); font-weight: 600; cursor: pointer; }
.inline { margin-top: 14px; display: flex; gap: 6px; flex-wrap: wrap; font-size: 14px; }

.switch { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: 14px; }

.alert { margin: 0 0 14px; padding: 11px 14px; border-radius: 12px; font-size: 14px; }
.alert.error { background: var(--error-bg); color: var(--error-text); }
.alert.ok { background: var(--ok-bg); color: var(--ok-text); }
.alert.dev { background: var(--dev-bg); color: var(--dev-text); }

.choices { gap: 12px; }
.choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%;
  font: inherit; color: var(--text); text-align: left; cursor: pointer;
  background: var(--field); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px;
}
.choice:hover { border-color: var(--brand); }
.choice-title { font-weight: 600; }
.choice-sub { color: var(--muted); font-size: 14px; }

.app-head { display: flex; flex-direction: column; gap: 12px; }
.app-logo { border-radius: 12px; border: 1px solid var(--line); object-fit: cover; }
.who { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 16px 0 4px; border: 1px solid var(--line); border-radius: 14px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
}
.scopes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.scopes li { padding: 10px 14px 10px 38px; position: relative; border-radius: 12px; background: var(--bg); }
.scopes li::before {
  content: ''; position: absolute; left: 14px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  border-radius: 50%; background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
}

code { font-size: 13px; background: var(--bg); padding: 1px 6px; border-radius: 6px; }

.foot { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.foot nav { display: flex; gap: 16px; }
.foot a { color: var(--muted); font-weight: 500; }
