@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;450;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

:root {
  --bg: #f7f7f4;
  --panel: #ffffff;
  --text: #080808;
  --muted: #666666;
  --line: #deded8;
  --soft-line: #ecece6;
  --button: #080808;
  --button-text: #ffffff;
  --font-main: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

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

.login-card {
  width: min(100%, 430px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.06);
}

.login-brand {
  width: 74px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 34px;
  background: #080808;
  border-radius: 18px;
  text-decoration: none;
}

.login-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
}

.login-card h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.login-card > p {
  margin: 12px 0 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.google-button,
.button {
  width: 100%;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.google-button:hover,
.button:hover {
  transform: translateY(-1px);
  border-color: #bdbdb5;
}

.google-button span {
  width: 22px;
  height: 22px;
  border: 1px solid var(--soft-line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}

.divider span {
  height: 1px;
  background: var(--soft-line);
}

.divider p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.login-card input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfbf8;
  color: var(--text);
  padding: 0 14px;
  outline: none;
  font-size: 14px;
  margin-bottom: 12px;
}

.login-card input:focus {
  border-color: #080808;
  background: #ffffff;
}

.login-card input::placeholder {
  color: #9a9a92;
}

.button.primary {
  margin-top: 4px;
  background: var(--button);
  border-color: var(--button);
  color: var(--button-text);
}

.button.primary:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.login-error {
  margin: 14px 0 0;
  padding: 11px 12px;
  border: 1px solid #f0b8b8;
  border-radius: 12px;
  background: #fff2f2;
  color: #9f2020;
  font-size: 13px;
  line-height: 1.4;
}

.full {
  width: 100%;
}

.login-card small {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 520px) {
  .login-page {
    padding: 18px;
  }

  .login-card {
    padding: 26px;
    border-radius: 18px;
  }

  .login-card h1 {
    font-size: 30px;
  }
}
