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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #fff;
  color: #1a1a1a;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: clamp(1.5rem, 5vw, 3rem);
}

.logo {
  width: clamp(140px, 30vw, 320px);
  height: auto;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

form {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #555;
}

input,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  background: #fafafa;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus {
  border-color: #888;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

button {
  padding: 0.8rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: #007B6F;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

button:hover {
  background: #006559;
}

button:active {
  transform: scale(0.98);
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #555;
  outline-offset: 2px;
}

.error {
  font-size: 0.8rem;
  color: #d44;
  min-height: 1.2em;
}

.success {
  font-size: 0.875rem;
  color: #2a7d2a;
  text-align: center;
  min-height: 1.3em;
}

.error-msg {
  color: #d44;
}

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