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

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #f0f2f5;
  color: #1a1a2e;
  min-height: 100vh;
}

/* LOGIN */
.login-page { display: flex; align-items: center; justify-content: center; }
.login-box {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  margin: 40px 16px;
}
.login-box .logo { font-size: 2rem; text-align: center; margin-bottom: 8px; }
.login-box h2 { text-align: center; font-size: 1.3rem; margin-bottom: 24px; color: #333; }

/* MAIN */
.container { max-width: 600px; margin: 0 auto; padding: 24px 16px; }
.header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.logo { font-size: 1.5rem; font-weight: 700; color: #1a1a2e; }
.logout-btn {
  font-size: 0.85rem; color: #888;
  text-decoration: none; padding: 6px 14px;
  border: 1px solid #ddd; border-radius: 8px;
  transition: background 0.2s;
}
.logout-btn:hover { background: #f5f5f5; }

.card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.card h2 { font-size: 1.2rem; margin-bottom: 24px; color: #333; }

.field-group { margin-bottom: 18px; }
.field-group label { display: block; font-size: 0.85rem; font-weight: 600; color: #555; margin-bottom: 6px; }
.req { color: #e53935; }
.field-group input,
.field-group select,
.field-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid #e0e0e0; border-radius: 10px;
  font-size: 1rem; color: #1a1a2e;
  background: #fafafa; transition: border 0.2s;
  outline: none;
}
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus { border-color: #4361ee; background: #fff; }
.field-group textarea { resize: vertical; }

.btn-send {
  width: 100%; padding: 13px;
  background: #4361ee; color: #fff;
  border: none; border-radius: 10px;
  font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s;
  margin-top: 8px;
}
.btn-send:hover { background: #3451d1; }
.btn-send:disabled { background: #a0aec0; cursor: not-allowed; }

.alert {
  padding: 12px 16px; border-radius: 10px;
  font-size: 0.93rem; margin-bottom: 16px;
}
.alert.error { background: #fff0f0; color: #c0392b; border: 1px solid #f5c6cb; }
.alert.success { background: #f0fff4; color: #27ae60; border: 1px solid #b2dfdb; }

/* CHECKBOX */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.93rem;
  color: #333;
  font-weight: 500;
  margin-bottom: 0;
}
.checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 54px;
  height: 54px;
  border: 3px solid #e53935;
  border-radius: 10px;
  background: #fafafa;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
}
.checkbox-label input[type="checkbox"]:checked {
  background: #4361ee;
  border-color: #e53935;
}
.checkbox-label input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}
