* {
  box-sizing: border-box;
}
body {
  overflow-x: hidden;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f4f7f9;
  margin: 0;
  padding: 0;
}
.page-wrapper {
  min-height: calc(100vh - 80px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}
.form-card {
  width: 100%;
  max-width: 900px;
  background: #ffffff;
  padding: 40px;
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}
.logo {
  text-align: center;
  margin-bottom: 15px;
}
.logo img {
  max-width: 160px;
}
h2 {
  text-align: center;
  color: #0f5132;
  margin-bottom: 6px;
}
.desc {
  text-align: center;
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 30px;
}
.msg {
  text-align: center;
  font-weight: 600;
  margin-bottom: 18px;
  color: #198754;
}
.msg.error {
  color: #dc3545;
}
.form-row {
  display: flex;
  gap: 22px;
  margin-bottom: 16px;
}
.form-group {
  flex: 1;
}
.full-width {
  margin-bottom: 16px;
}
label {
  font-weight: 600;
  color: #333;
}
label span {
  color: #dc3545;
}
input,
textarea {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border: 1px solid #dcdcdc;
  border-radius: 7px;
  font-size: 14px;
  transition: border 0.2s;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: #198754;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
input[type="file"] {
  padding: 8px;
}
.checkbox-wrap {
  margin: 22px 0;
}
.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  user-select: none;
  align-items: center;
}
.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}
.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #198754;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    border-color 0.2s;
  flex-shrink: 0;
}
.checkmark::after {
  content: "";
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
}
.custom-checkbox input:checked + .checkmark {
  background: #198754;
  border-color: #198754;
}
.custom-checkbox input:checked + .checkmark::after {
  opacity: 1;
}
.custom-checkbox input:focus + .checkmark {
  box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.25);
}
.checkbox-text {
  color: #6c6868;
}
.checkbox-text span {
  color: #dc3545;
}
.btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #198754, #157347);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}
.note {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: #6c757d;
}
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }
  .form-card {
    padding: 28px 22px;
  }
}
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 280px;
  padding: 14px 20px;
  color: #fff;
  border-radius: 6px;
  z-index: 9999;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}
.toast.success { background: #2ecc71; }
.toast.error { background: #e74c3c; }
.checkbox-wrap.error {
  border: 1px solid #e74c3c;
  padding: 10px;
  border-radius: 6px;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
