/*
 * Tenatry sign-in.
 *
 * The front door, so it uses the same tokens as the app and the portal rather
 * than a framework's defaults — this is the first impression of the product,
 * and it should not look like a different one.
 *
 * `d-none` is kept as a utility because login.js toggles it to reveal the
 * sign-up form.
 */
@import "/tenatry-tokens.css";

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  margin: 0;
}

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

.lg-card {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: rb-rise 0.45s var(--ease-rise) both;
}

.lg-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2px;
}

.lg-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.lg-brand__text b {
  display: block;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.lg-brand__text span {
  display: block;
  font-size: 12px;
  color: var(--dim);
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lg-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lg-field > label {
  font-size: 11px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.lg-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  padding: 11px 13px;
  font: inherit;
  font-size: 14px;
}

.lg-input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.lg-hint {
  font-size: 11px;
  color: var(--dim);
}

.lg-btn {
  width: 100%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 12px;
  padding: 12px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s var(--ease-pop), background 0.18s;
}

.lg-btn:hover {
  background: var(--card2);
}

.lg-btn--primary {
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.lg-btn--primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.lg-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.lg-rule {
  height: 1px;
  background: var(--line);
  margin: 2px 0;
}

.lg-note {
  margin: 0;
  font-size: 13px;
  color: var(--dim);
  line-height: 1.6;
}

.lg-alert {
  border: 1px solid var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: 12px;
  padding: 10px 13px;
  font-size: 13px;
}

.lg-foot {
  margin: 0;
  font-size: 12px;
  color: var(--dim);
}

.d-none {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
