html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #f6f7f9;
  color: #111318;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

button,
input {
  font: inherit;
}

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

.auth-card,
.login-panel {
  width: min(380px, 100%);
  padding: 32px;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(17, 19, 24, 0.08);
}

.auth-logo,
.login-brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 8px;
  background: #111318;
  color: #fff;
}

.auth-logo svg,
.login-brand-icon svg {
  width: 20px;
  height: 20px;
}

.auth-card h1,
.login-copy h1 {
  margin: 0 0 24px;
  color: #111318;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.auth-error,
.login-error {
  margin-bottom: 18px;
  padding: 11px 12px;
  border: 1px solid #f0c7c7;
  border-radius: 8px;
  background: #fff7f7;
  color: #9b1c1c;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.auth-form,
.login-form {
  display: grid;
  gap: 15px;
}

.auth-form label,
.login-form label {
  display: grid;
  gap: 7px;
}

.auth-form label span,
.login-form label span {
  color: #555d68;
  font-size: 13px;
  font-weight: 700;
}

.auth-form input,
.login-form input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid #d8dde4;
  border-radius: 8px;
  background: #fff;
  color: #111318;
  font-size: 15px;
  outline: 0;
}

.auth-form input:focus,
.login-form input:focus {
  border-color: #111318;
  box-shadow: 0 0 0 3px rgba(17, 19, 24, 0.08);
}

.auth-form button,
.login-form button,
.logout-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  margin-top: 6px;
  border: 0;
  border-radius: 8px;
  background: #111318;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
}

.auth-form button:hover,
.login-form button:hover,
.logout-form button:hover {
  background: #242831;
}

.login-brand {
  display: none;
}

.login-copy p {
  display: none;
}

.logout-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.logout-form a,
.logout-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.logout-form a {
  border: 1px solid #d8dde4;
  background: #fff;
  color: #111318;
}

@media (max-width: 480px) {
  .auth-page,
  .login-shell {
    padding: 16px;
  }

  .auth-card,
  .login-panel {
    padding: 26px;
  }
}
