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

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--brand-text);
  background: var(--brand-bg);
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
}

.card {
  background: var(--brand-surface);
  padding: 32px;
  border-radius: var(--brand-radius);
  width: 100%;
  max-width: 520px;
  margin: 20px;
}

.logo {
  display: block;
  margin: 0 auto 24px;
  height: 70px;
  width: auto;
  max-width: 100%;
}

h1 {
  font-size: 1.4rem;
  text-align: center;
  margin: 0 0 8px;
}

p.lede {
  color: var(--brand-muted);
  text-align: center;
  margin: 0 0 24px;
  font-size: 1.05rem;
}

label {
  display: block;
  margin: 12px 0 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-muted);
}

input[type='email'],
input[type='password'] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  font-size: 1rem;
  font-family: inherit;
}

input:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: 1px;
}

button {
  width: 100%;
  margin-top: 16px;
  padding: 10px 16px;
  background: var(--brand-primary);
  color: white;
  border: none;
  border-radius: var(--brand-radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}

button:hover {
  background: var(--brand-primary-hover);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.message {
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--brand-radius);
  font-size: 0.9rem;
}

.message.error {
  background: #fce8e6;
  color: var(--brand-danger);
}

.message.success {
  background: #e6f4ea;
  color: var(--brand-success);
}

.hidden {
  display: none !important;
}
