body {
  background-color: #f3f4f6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
}

.devise-container {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.devise-header {
  text-align: center;
  margin-bottom: 2rem;
}

.devise-header img {
  max-height: 60px;
  margin-bottom: 1rem;
}

.devise-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}

.field input[type="email"],
.field input[type="password"],
.field input[type="text"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  box-sizing: border-box;
}

.field input:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: #0886DE;
  box-shadow: 0 0 0 3px rgba(8, 134, 222, 0.5);
}

.actions input[type="submit"] {
  width: 100%;
  background-color: #0886DE;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.actions input[type="submit"]:hover {
  background-color: #066BB2;
}

.shared-links {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
}

.shared-links a {
  color: #0886DE;
  text-decoration: none;
}

.shared-links a:hover {
  text-decoration: underline;
}

#error_explanation {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #ef4444;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 0.375rem;
}

#error_explanation h2 {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

#error_explanation ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.875rem;
}

.notice, .alert {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

.notice {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #10b981;
}

.alert {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #ef4444;
}
