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

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

.card {
  background: #ffffff;
  border: 1px solid #e2e4e9;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(20, 24, 32, 0.06);
  width: 100%;
  max-width: 380px;
  padding: 40px 36px 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #3a5ba0;
  flex-shrink: 0;
}

.brand-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.subtitle {
  font-size: 13.5px;
  color: #6b7280;
  margin-bottom: 26px;
  line-height: 1.5;
}

label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: #444a58;
  margin-bottom: 6px;
}

.field {
  margin-bottom: 16px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 9px 12px;
  font-size: 14px;
  border: 1px solid #d5d8de;
  border-radius: 6px;
  outline: none;
  color: #1f2430;
  background: #fff;
}

input:focus {
  border-color: #3a5ba0;
  box-shadow: 0 0 0 3px rgba(58, 91, 160, 0.12);
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 13px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #444a58;
}

a {
  color: #3a5ba0;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  width: 100%;
  padding: 10px 0;
  background: #3a5ba0;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

button:hover {
  background: #32508f;
}

button:disabled {
  background: #a9b6cf;
  cursor: default;
}

.error {
  display: none;
  background: #fdecec;
  border: 1px solid #f5c2c2;
  color: #9a2b2b;
  font-size: 13px;
  border-radius: 6px;
  padding: 9px 12px;
  margin-bottom: 16px;
}

.error.show { display: block; }

.success {
  display: none;
  background: #eaf4ec;
  border: 1px solid #bfe0c6;
  color: #2c6b3a;
  font-size: 13.5px;
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 4px;
  line-height: 1.5;
}

.success.show { display: block; }

.back-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
}

.footer {
  text-align: center;
  margin-top: 22px;
  font-size: 11.5px;
  color: #9aa0ac;
}
