:root {
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-error: #dc2626;
  --color-success: #16a34a;
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-border: #d1d5db;
  --color-bg: #f9fafb;
  --radius: 6px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

form,
.success {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.field {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.15s;
}

input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input[aria-invalid='true'] {
  border-color: var(--color-error);
}

input[aria-invalid='true']:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

button[type='submit'] {
  width: 100%;
  padding: 0.625rem 1rem;
  margin-top: 1rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

button[type='submit']:hover:not(:disabled) {
  background: var(--color-primary-hover);
}

button[type='submit']:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.field-error {
  display: block;
  color: var(--color-error);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

.error-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--color-error);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.success {
  text-align: center;
}

.success h1 {
  color: var(--color-success);
}

.success p {
  margin-top: 0.75rem;
  color: var(--color-text-light);
}

.success a {
  color: var(--color-primary);
  text-decoration: underline;
}

.info {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--color-text-light);
  font-size: 0.875rem;
}

.resend {
  text-align: center;
  margin-top: 1rem;
}

.link-button {
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  font-size: 0.875rem;
  text-decoration: underline;
  padding: 0;
}

.link-button:disabled {
  color: var(--color-text-light);
  cursor: not-allowed;
  text-decoration: none;
}

.resend-message {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: var(--color-success);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.875rem;
  text-align: center;
}


.app-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
}

.app-logo {
  margin-bottom: 2rem;
  text-align: center;
}

.app-logo .logo {
  height: 48px;
  width: auto;
}
