/* The sign-in page for AI apps: the website's colours, one card. */

:root {
  --mint: #1ADB9E;
  --on-mint: #15181C;
  --accent: #00855C;
  --ink: #15181C;
  --secondary-text: #646B74;
  --field: #EFF1F4;
  --canvas: #FFFFFF;
  --card: #FFFFFF;
  --line: #E3E6EA;
  --danger: #C2362B;
  --shadow: 0 1px 2px rgba(21, 24, 28, .05), 0 10px 30px rgba(21, 24, 28, .08);
  --rounded: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --text: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --mint: #33FFB8;
    --accent: #33FFB8;
    --ink: #F1F3F5;
    --secondary-text: #A9B0B8;
    /* Lighter than the card, so buttons and fields stand out on it. */
    --field: #2A3533;
    --canvas: #141A19;
    --card: #1D2423;
    --line: #2A3331;
    --danger: #FF7A6E;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding: 48px 16px 24px;
}

[hidden] { display: none !important; }

.sheet {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 28px 24px;
  text-align: center;
}

.icon img { display: block; margin: 0 auto 16px; border-radius: 15px; }

h1 { font-family: var(--rounded); font-size: 24px; line-height: 1.25; margin: 0 0 8px; letter-spacing: -.01em; }

.quiet { color: var(--secondary-text); margin: 0 0 18px; }
.small { font-size: 15px; }
#signin > .small { margin: 18px 0 0; }

.stack { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.row { display: flex; gap: 10px; margin-top: 8px; }
.row button { flex: 1; }

label { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--secondary-text); }
input {
  font: inherit;
  color: var(--ink);
  background: var(--field);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 12px;
}
input:focus { outline: none; border-color: var(--accent); }

button { font: inherit; cursor: pointer; border-radius: 14px; padding: 12px 16px; border: 1px solid transparent; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:disabled { opacity: .5; cursor: default; }
.primary { background: var(--mint); color: var(--on-mint); font-weight: 600; }
.secondary, .provider { background: var(--field); color: var(--ink); }
.provider { font-weight: 600; }
.link { background: none; color: var(--accent); padding: 0; border-radius: 4px; font-size: inherit; }
#forgot { align-self: center; font-size: 15px; margin-top: 2px; }

.or { display: flex; align-items: center; gap: 12px; color: var(--secondary-text); font-size: 14px; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

.can { text-align: left; margin: 16px 0 18px; padding: 0; list-style: none; }
.can li { padding: 8px 0 8px 28px; position: relative; border-bottom: 1px solid var(--line); }
.can li:last-child { border-bottom: 0; }
.can li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.error { color: var(--danger); font-size: 15px; margin: 14px 0 0; }

.foot { display: flex; gap: 18px; margin-top: 20px; font-size: 14px; }
.foot a { color: var(--secondary-text); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
