/* login.css — Flowboard sign-in */

.login-stage {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1200px 500px at 85% -10%, color-mix(in oklab, var(--brand) 18%, transparent), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, color-mix(in oklab, #0073ea 14%, transparent), transparent 55%),
    linear-gradient(180deg, #fafbfd 0%, #f3f5f9 100%);
  font-family: var(--font-sans);
  overflow: hidden;
}

/* decorative shapes */
.login-stage::before,
.login-stage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  opacity: .55;
}
.login-stage::before {
  width: 380px; height: 380px;
  background: radial-gradient(circle, color-mix(in oklab, var(--brand) 60%, white) 0%, transparent 70%);
  top: -80px; right: -60px;
}
.login-stage::after {
  width: 320px; height: 320px;
  background: radial-gradient(circle, color-mix(in oklab, #0073ea 60%, white) 0%, transparent 70%);
  bottom: -80px; left: -40px;
}

.login-blob {
  position: absolute; pointer-events: none;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: conic-gradient(from 120deg,
    color-mix(in oklab, var(--brand) 30%, transparent),
    color-mix(in oklab, #0073ea 30%, transparent),
    color-mix(in oklab, #00c875 20%, transparent),
    color-mix(in oklab, var(--brand) 30%, transparent));
  filter: blur(90px); opacity: .35;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}

/* tiny floating grid */
.login-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(16,22,40,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16,22,40,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  pointer-events: none;
}

/* Card */
.login-card {
  position: relative; z-index: 2;
  width: 408px;
  background: white;
  border-radius: 16px;
  border: 1px solid color-mix(in oklab, #0f1729 6%, white);
  box-shadow:
    0 1px 2px rgba(16,22,40,.06),
    0 12px 32px rgba(16,22,40,.08),
    0 28px 80px rgba(16,22,40,.10);
  padding: 30px 32px 26px;
  display: flex; flex-direction: column; gap: 18px;
}

.login-brand {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 2px;
}
.login-logo {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 17px; letter-spacing: -0.02em;
}
.login-logo img { width: 40px; height: 40px; display: block; }
.login-wordmark { font-size: 17px; font-weight: 800; color: #0f1729; letter-spacing: -0.02em; }

.login-title {
  font-size: 22px; font-weight: 700; color: #0f1729; letter-spacing: -0.015em;
  line-height: 1.25;
}
.login-sub {
  font-size: 13px; color: #676879; margin-top: 4px; font-weight: 500;
}

/* SSO buttons */
.login-sso { display: flex; flex-direction: column; gap: 8px; }
.login-sso-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 14px;
  background: white; color: #0f1729;
  border: 1px solid #e6e9ef; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: all .12s ease;
  font-family: inherit;
}
.login-sso-btn:hover { background: #f8f9fc; border-color: #c4c7d0; }
.login-sso-btn:active { transform: translateY(1px); }
.login-sso-btn svg { flex-shrink: 0; }

/* divider */
.login-divider {
  display: flex; align-items: center; gap: 10px;
  color: #a3a8b6; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
}
.login-divider::before, .login-divider::after {
  content: ""; flex: 1; height: 1px; background: #e6e9ef;
}

/* Fields */
.login-fields { display: flex; flex-direction: column; gap: 12px; }
.login-field { display: flex; flex-direction: column; gap: 5px; }
.login-label {
  font-size: 11.5px; font-weight: 600; color: #676879;
  letter-spacing: .02em;
}

.login-ws-input {
  display: flex; align-items: stretch;
  border: 1px solid #e6e9ef; border-radius: 9px;
  background: white;
  overflow: hidden;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.login-ws-input:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 18%, transparent);
}
.login-ws-input input {
  flex: 1; border: none; outline: none;
  padding: 11px 12px; font-size: 14px; font-weight: 500; color: #0f1729;
  background: transparent;
  font-family: inherit;
}
.login-ws-input input::placeholder { color: #a3a8b6; font-weight: 500; }
.login-ws-suffix {
  display: flex; align-items: center;
  padding: 0 12px;
  font-size: 13px; font-weight: 500; color: #676879;
  background: #f5f6f8;
  border-left: 1px solid #e6e9ef;
  white-space: nowrap;
}
.login-ws-input.is-error {
  border-color: #e2445c;
  box-shadow: 0 0 0 3px rgba(226,68,92,.18);
}

.login-hint {
  font-size: 11.5px; color: #676879; font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px;
}
.login-hint a { color: var(--brand); text-decoration: none; font-weight: 600; }
.login-hint a:hover { text-decoration: underline; }

/* Error banner */
.login-error {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 13px;
  background: color-mix(in oklab, #e2445c 8%, white);
  border: 1px solid color-mix(in oklab, #e2445c 24%, white);
  border-radius: 9px;
  font-size: 12.5px; color: #8b2035;
}
.login-error-icon {
  flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%;
  background: #e2445c; color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 11px;
}
.login-error-body strong { color: #8b2035; font-weight: 700; display: block; margin-bottom: 2px; }

/* Remember me row */
.login-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.login-checkbox {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: #0f1729; font-weight: 500;
  cursor: pointer; user-select: none;
}
.login-checkbox input {
  appearance: none; -webkit-appearance: none;
  width: 15px; height: 15px;
  border: 1.5px solid #c4c7d0; border-radius: 4px;
  background: white; position: relative; cursor: pointer;
  transition: all .12s ease;
  margin: 0;
}
.login-checkbox input:checked {
  background: var(--brand); border-color: var(--brand);
}
.login-checkbox input:checked::after {
  content: "✓"; position: absolute; top: -1px; left: 2px;
  color: white; font-size: 11px; font-weight: 800;
}

/* Submit */
.login-submit {
  padding: 12px 14px;
  background: #0f1729; color: white;
  border: none; border-radius: 9px;
  font-size: 14px; font-weight: 700; letter-spacing: -0.005em;
  cursor: pointer;
  transition: all .12s ease;
  font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.login-submit:hover { background: #1a2339; }
.login-submit:active { transform: translateY(1px); }
.login-submit.is-brand {
  background: var(--brand);
  box-shadow: 0 4px 14px color-mix(in oklab, var(--brand) 35%, transparent);
}
.login-submit.is-brand:hover {
  background: color-mix(in oklab, var(--brand) 88%, black);
}

/* Footer bits */
.login-foot {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; font-size: 12px; color: #676879; font-weight: 500;
}
.login-foot a { color: var(--brand); text-decoration: none; font-weight: 600; }
.login-foot a:hover { text-decoration: underline; }

.login-legal {
  position: absolute; bottom: 18px; left: 0; right: 0;
  text-align: center;
  font-size: 11px; color: #a3a8b6; font-weight: 500;
  z-index: 2;
}
.login-legal a { color: #676879; text-decoration: none; }
.login-legal a:hover { text-decoration: underline; }
