@import url('../tokens.css');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.login-wrap {
  width: 100%;
  max-width: 400px;
  padding: 1.5rem;
}

.logo {
  text-align: center;
  margin-bottom: 2rem;
}
.logo-text {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.04em;
}
.logo-text em { color: var(--wine-700); font-style: normal; }
.logo-sub {
  font-size: .8rem;
  color: var(--muted);
  margin-top: .35rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: 1rem;
}

label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted);
}

input {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 .875rem;
  height: 42px;
  font-size: .875rem;
  color: var(--ink);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
  width: 100%;
  outline: none;
}
input:hover { border-color: var(--wine-200); }
input:focus {
  border-color: var(--wine-700);
  box-shadow: 0 0 0 3px rgba(115,6,79,.1);
}
input::placeholder { color: var(--muted); opacity: .55; }

button[type="submit"] {
  width: 100%;
  background: var(--wine-700);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  height: 44px;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: .25rem;
  transition: background .15s, transform .1s, box-shadow .15s;
  font-family: inherit;
}
button[type="submit"]:hover { background: var(--wine-800); box-shadow: var(--shadow-sm); }
button[type="submit"]:active { transform: scale(0.98); }
button[type="submit"]:disabled { opacity: .45; cursor: not-allowed; }

.error {
  background: rgba(196,61,75,.08);
  border: 1px solid rgba(196,61,75,.22);
  color: var(--red);
  border-radius: var(--radius-sm);
  padding: .65rem .875rem;
  font-size: .8125rem;
  margin-bottom: 1rem;
  display: none;
}
