:root {
  --ag-green: #2e7d32;
  --ag-green-dark: #1b5e20;
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1c2530;
  --muted: #6b7785;
  --error: #c62828;
  --error-bg: #fdecea;
  --border: #d9dee4;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 420px;
  padding: 36px 32px;
  text-align: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--ag-green);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.brand h1 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 12px 0 8px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px;
}

form {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 6px;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-top: 10px;
}

input {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus {
  outline: none;
  border-color: var(--ag-green);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

.error {
  color: var(--error);
  background: var(--error-bg);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  margin: 8px 0 0;
  min-height: 0;
}

button,
.btn-link {
  margin-top: 20px;
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-radius: 8px;
  background: var(--ag-green);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}

button:hover,
.btn-link:hover {
  background: var(--ag-green-dark);
}

button:disabled {
  background: #a5a5a5;
  cursor: not-allowed;
}

.btn-link {
  width: auto;
  padding: 11px 22px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--ag-green);
  border-radius: 50%;
  margin: 8px auto 16px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.checkmark,
.cross {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  margin: 8px auto 12px;
}

.checkmark {
  background: var(--ag-green);
}

.cross {
  background: var(--error);
}

.hidden {
  display: none !important;
}
