﻿@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600&display=swap');

:root {
  --bg: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #0ea5e9;
  --accent-strong: #0284c7;
  --error: #dc2626;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.page {
  min-height: 100vh;
  padding: 32px 24px 48px;
}

.page-login {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.logo {
  width: 160px;
  height: auto;
  margin-bottom: 16px;
}

h1 {
  margin: 0 0 4px;
  font-size: 24px;
}

.subtitle {
  color: var(--muted);
  margin: 0 0 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  gap: 16px;
  align-items: center;
}

.brand p {
  margin: 0;
  color: var(--muted);
}

.panel {
  margin-top: 32px;
  max-width: 520px;
}

.prompt {
  margin-bottom: 20px;
  font-size: 18px;
}

.form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 14px;
  text-align: left;
}

.field input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 16px;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 16px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.2s ease;
}

.btn:hover {
  background: var(--accent-strong);
}

.btn:active {
  transform: translateY(1px);
}

.link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.error {
  margin-top: 12px;
  color: var(--error);
  background: #fee2e2;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}

.result {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.result-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--muted);
}

.result-value {
  margin-top: 8px;
  font-size: 18px;
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand {
    flex-direction: column;
    align-items: flex-start;
  }
}
