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

:root { --red: #E8001A; --red-light: #fff0f2; }

body {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: #f5f5f5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', sans-serif;
}

.card {
  width: 100%; max-width: 400px; margin: 24px;
  background: #fff; border-radius: 20px; padding: 40px 36px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.logo { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
.logo-mark {
  width: 36px; height: 36px; background: var(--red); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 16px;
}
.logo-text { font-size: 18px; font-weight: 600; color: #1a1a1a; }

h1 { font-size: 22px; font-weight: 600; color: #1a1a1a; margin-bottom: 6px; }
.subtitle { font-size: 15px; color: #aaa; margin-bottom: 28px; }

.field { margin-bottom: 14px; }
label { display: block; font-size: 15px; font-weight: 500; color: #555; margin-bottom: 6px; }
input {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid #e8e8e8; border-radius: 12px;
  font-size: 15px; color: #1a1a1a; outline: none; font-family: inherit;
  transition: border-color 0.15s; background: #fafafa;
}
input:focus { border-color: var(--red); background: #fff; }

.btn {
  width: 100%; padding: 15px;
  background: var(--red); color: #fff; border: none;
  border-radius: 12px; font-size: 15px; font-weight: 600; font-family: inherit;
  cursor: pointer; margin-top: 8px; transition: opacity 0.15s;
}
.btn:hover { opacity: 0.88; }
.btn:active { opacity: 0.75; }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-outline { background: #fff; color: #555; border: 1.5px solid #e0e0e0; }

.error {
  display: none; font-size: 15px; color: var(--red);
  background: var(--red-light); border-radius: 10px;
  padding: 10px 14px; margin-top: 14px; text-align: center;
}
.error.show { display: block; }
