* {
  box-sizing: border-box;
}

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

.card {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 340px;
}

.card h1 {
  margin: 0 0 1.5rem;
  font-size: 1.4rem;
  text-align: center;
}

label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 0.6rem 0.7rem;
  margin-bottom: 0.3rem;
  border: 1px solid #d0d3d9;
  border-radius: 6px;
  font-size: 0.95rem;
}

input:focus {
  outline: none;
  border-color: #4a6cf7;
}

.password-field {
  display: flex;
  gap: 0.4rem;
}

.password-field input {
  flex: 1;
}

.password-field button {
  padding: 0 0.7rem;
  border: 1px solid #d0d3d9;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 0.8rem;
}

.error {
  color: #d13438;
  font-size: 0.78rem;
  min-height: 1rem;
  margin: 0 0 0.6rem;
}

#submit-btn {
  width: 100%;
  padding: 0.65rem;
  margin-top: 0.5rem;
  border: none;
  border-radius: 6px;
  background: #4a6cf7;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

#submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#submit-btn:hover:not(:disabled) {
  background: #3a5ce0;
}

.status {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  min-height: 1.1rem;
}

.status:empty {
  margin-top: 0;
  padding: 0;
}

.status.success,
.status.failure {
  padding: 0.7rem 0.8rem;
  border-radius: 6px;
  border: 1px solid transparent;
}

.status.success {
  color: #0f5c2b;
  background: #e6f6ea;
  border-color: #b7e3c4;
}

.status.failure {
  color: #a8231e;
  background: #fdecec;
  border-color: #f3bcbb;
}
