:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #edf4ed;
  color: #173122;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(23, 100, 63, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 100, 63, 0.04) 1px, transparent 1px),
    #edf4ed;
  background-size: 32px 32px;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(100%, 420px);
  padding: 32px;
  border: 1px solid #c8d8ca;
  border-top: 4px solid #2f8f5b;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 70px rgba(23, 74, 46, 0.16);
}

.login-brand { display: flex; align-items: center; gap: 14px; }
.login-brand-mark { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid #b9d5bf; border-radius: 8px; background: #f4faf4; color: #17643f; box-shadow: 0 0 0 3px rgba(132, 201, 176, 0.2); font-size: 16px; font-weight: 900; }
.login-brand span { color: #397d63; font-size: 11px; font-weight: 800; letter-spacing: 0; }
.login-brand h1 { margin: 3px 0 0; font-size: 27px; letter-spacing: 0; }
.login-copy { margin: 26px 0 22px; color: #68766c; font-size: 15px; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; color: #526158; font-size: 13px; font-weight: 700; }

input {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid #b9cdbd;
  border-radius: 6px;
  outline: none;
  background: #fbfdfb;
  color: #173122;
  font: inherit;
}

input:focus { border-color: #2f8f5b; box-shadow: 0 0 0 3px rgba(47, 143, 91, 0.13); }

button {
  height: 49px;
  border: 0;
  border-radius: 6px;
  background: #17643f;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:hover { background: #0f5032; }
button:disabled { cursor: wait; opacity: 0.65; }
.mode-switch {
  height: 42px;
  border: 1px solid #b9cdbd;
  background: transparent;
  color: #3e5948;
}
.mode-switch:hover { background: #e8f3e9; }
.login-error { min-height: 18px; margin: -2px 0; color: #bd4e36; font-size: 13px; }
.security-note { margin-top: 24px; color: #68766c; font-size: 12px; text-align: center; }
.security-note span { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #2f8f5b; }
.legal-links { display: flex; justify-content: center; gap: 16px; margin-top: 15px; }
.legal-links a { color: #3b7052; font-size: 12px; text-underline-offset: 3px; }
.legal-links a:hover { color: #17472e; }

@media (max-width: 520px) {
  .login-shell { padding: 14px; }
  .login-panel { padding: 24px 20px; }
}

/* Minimal AI workspace theme. */
:root {
  color-scheme: dark;
  background: #101110;
  color: #f0f1f0;
}

body {
  background: #101110;
}

.login-panel {
  border: 1px solid #2c2f2c;
  background: #151715;
  box-shadow: none;
}

.login-brand-mark {
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.login-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.login-brand span {
  color: #8fba97;
}

.login-copy,
.security-note {
  color: #929a93;
}

label {
  color: #b7bdb8;
}

input {
  border-color: #363b36;
  background: #1a1d1a;
  color: #f0f2f0;
}

input:focus {
  border-color: #69736a;
  box-shadow: 0 0 0 3px rgba(121, 184, 136, 0.1);
}

button {
  background: #e2e5e2;
  color: #151715;
}

button:hover {
  background: #ffffff;
}

.mode-switch {
  border-color: #373c37;
  color: #b7bdb8;
}

.mode-switch:hover {
  background: #202320;
}

.security-note span {
  background: #79b888;
}

.legal-links a {
  color: #8f9990;
}

.legal-links a:hover {
  color: #ffffff;
}
