:root {
  --brand-red: #e90029;
  --brand-red-dark: #ae001e;
  --brand-red-hover: #740014;
  --text: #222;
  --text-muted: #666;
  --border: #ddd;
  --error-bg: #fff0f0;
  --error-text: #c0392b;
  --success-bg: #f0fff4;
  --success-text: #1e6b3a;
}

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

body {
  font-family: Roboto, Inter, "Open Sans", Helvetica, Arial, sans-serif;
  background: #f5f5f5 url('img/Login-BG.png') no-repeat bottom right / cover;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1rem;
}

.container {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 500px;
}

header { margin-bottom: 2rem; }

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.brand-logo {
  height: 36px;
  width: auto;
}

.brand-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  display: inline-block;
}

.co-brand-logo {
  height: 28px;
  width: auto;
}

h1 {
  font-size: 23px;
  font-weight: 700;
  color: var(--brand-red);
  margin-bottom: 0.5rem;
}

.tagline { color: var(--text-muted); font-size: 0.9rem; }

.field { margin-bottom: 1.25rem; }

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s;
}

input:focus {
  outline: none;
  border-color: var(--brand-red);
}

.field-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--error-text);
  margin-top: 0.3rem;
  min-height: 1rem;
}

button[type="submit"] {
  width: 100%;
  padding: 0.75rem;
  background: var(--brand-red);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.15s;
}

button[type="submit"]:hover { background: var(--brand-red-hover); }
button[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; }

.message {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.message.success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid #a3d9b1;
}

.message.error {
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid #f5c6c6;
}

.hidden { display: none; }

.form-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.form-footer a { color: var(--brand-red); text-decoration: none; }
.form-footer a:hover { text-decoration: underline; }
.footer-sep { margin: 0 0.4rem; }
