/* Login styling shared with the Shots login. */
* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --w13-bg: #d7d6d5;
  --w13-surface: #d7d6d5;
  --w13-surface-2: #d7d6d5;
  --w13-surface-3: #d7d6d5;
  --w13-text: #302f2c;
  --w13-text-muted: rgb(48 47 44 / 0.66);
  --w13-border: rgb(48 47 44 / 0.56);
  --w13-border-soft: rgb(48 47 44 / 0.2);
  --w13-shadow: 0 1px 0 rgb(48 47 44 / 0.08), 0 2px 6px rgb(48 47 44 / 0.16);
  --w13-control-shadow: 0 1px 0 rgb(48 47 44 / 0.08), 0 2px 6px rgb(48 47 44 / 0.16);
  --w13-control-shadow-hover: 0 0 0 1px rgb(48 47 44 / 0.22), 0 3px 8px rgb(48 47 44 / 0.18);
  --w13-active-bg: rgb(48 47 44 / 0.86);
  --w13-active-text: #d7d6d5;
  --w13-accent: rgb(48 47 44 / 0.86);
  --w13-accent-strong: #302f2c;
  --w13-accent-text: #d7d6d5;
  --w13-accent-glow: rgb(48 47 44 / 0.22);
  --w13-search-mark-bg: rgb(48 47 44 / 0.12);
  --w13-search-mark-text: #302f2c;
  --w13-search-mark-border: rgb(48 47 44 / 0.42);
  --w13-danger: rgb(48 47 44 / 0.86);
  --w13-ok: #302f2c;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --w13-bg: #151311;
  --w13-surface: #1c1916;
  --w13-surface-2: #26211c;
  --w13-surface-3: #332b24;
  --w13-text: #eee8df;
  --w13-text-muted: #c0b6a8;
  --w13-border: rgba(226, 211, 193, 0.32);
  --w13-border-soft: rgba(226, 211, 193, 0.18);
  --w13-shadow: 0 2px 12px rgba(0, 0, 0, 0.62);
  --w13-control-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 6px 18px rgba(0, 0, 0, 0.46);
  --w13-control-shadow-hover: 0 0 0 1px rgba(233, 142, 45, 0.28), 0 0 24px rgba(233, 126, 31, 0.14);
  --w13-active-bg: rgba(222, 132, 38, 0.88);
  --w13-active-text: #0c0703;
  --w13-accent: rgba(222, 129, 36, 0.88);
  --w13-accent-strong: #e8a650;
  --w13-accent-text: #17110b;
  --w13-accent-glow: rgba(217, 111, 28, 0.28);
  --w13-search-mark-bg: rgba(224, 121, 34, 0.2);
  --w13-search-mark-text: #eee8df;
  --w13-search-mark-border: rgba(238, 143, 42, 0.38);
  --w13-danger: #5a2c06;
  --w13-ok: #4f5054;
}

html,
body,
#root {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--w13-bg);
  color: var(--w13-text);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  font-family: inherit;
  font-weight: 400;
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select {
  color-scheme: dark;
}

.app-shell {
  height: 100vh;
  height: 100svh;
  max-height: 100svh;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--w13-bg);
  color: var(--w13-text);
  overflow: hidden;
}

.app-shell--shot {
  grid-template-rows: 1fr;
}

.app-shell--loading {
  place-items: center;
  font-size: 0.95rem;
  color: var(--w13-text-muted);
}

.login-page {
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 57px 18px 24px;
}

.login-form {
  width: min(100%, 276px);
  display: grid;
  gap: 13px;
  padding: 22px 23px 24px;
  border-radius: 0;
  background: var(--w13-surface);
  box-shadow: 0 9px 26px rgb(48 47 44 / 0.16);
}

.login-form__title {
  margin: 0 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--w13-text);
  font-size: 28px;
  line-height: 1.12;
  font-weight: 700;
}

.login-form__dagger {
  width: auto;
  height: 38px;
  display: block;
  flex: 0 0 auto;
}

:root[data-theme="dark"] .login-form__dagger {
  filter: invert(1);
}

.login-field {
  display: grid;
  gap: 8px;
}

.login-field__label {
  text-align: center;
  color: var(--w13-text);
  font-size: 19px;
  font-weight: 500;
}

.login-field__input {
  width: 100%;
  min-height: 47px;
  padding: 9px 10px;
  border: 1px solid var(--w13-border-soft);
  border-radius: 0;
  background: var(--w13-surface-2);
  color: var(--w13-text);
  font-size: 16px;
}

.login-field__input:focus {
  outline: 2px solid var(--w13-accent-strong);
  outline-offset: 1px;
}

.login-form__error {
  margin: 0;
  color: var(--w13-danger);
  font-size: 14px;
  text-align: center;
}

.login-form__submit {
  min-height: 46px;
  margin-top: -1px;
  border: 0;
  border-radius: 0;
  background: var(--w13-active-bg);
  color: var(--w13-active-text);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.login-form__submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.login-user {
  margin-top: 4px;
  padding-top: 13px;
  border-top: 1px solid var(--w13-border-soft);
  text-align: center;
}

.login-user__label {
  color: var(--w13-text-muted);
  font-size: 12px;
  text-transform: uppercase;
}

.login-user__email {
  margin-top: 4px;
  font-weight: 700;
}

.login-user__meta {
  margin-top: 2px;
  color: var(--w13-text-muted);
  font-size: 13px;
}
