body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-container {
  text-align: center;
  margin-bottom: 20px;
}

.logo {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.logo img {
  object-fit: fill;
  width: 100%;
  height: 100%;
}



.form-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 30px 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

h1 {
  color: white;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}

.subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  margin-bottom: 24px;
  text-align: center;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1a4545;
  margin-bottom: 6px;
}

.required {
  color: #d32f2f;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 18px;
  opacity: 0.6;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 2px solid #d0d0d0;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  background: white;
  transition: border-color 0.3s;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #4a8080;
}

.form-input::placeholder {
  color: #999;
}

.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 13px;
  color: #333;
  cursor: pointer;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: #2c5f5f;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  margin-bottom: 16px;
}

.submit-btn:hover {
  background: #1a4545;
}

.login-link {
  text-align: center;
  font-size: 13px;
  color: #333;
}

.login-link a {
  color: #2c5f5f;
  text-decoration: none;
  font-weight: 600;
}

.login-link a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .form-container {
      padding: 24px 20px;
  }

  .name-row {
      grid-template-columns: 1fr;
  }
}
/* ── Show / Hide password button ─────────────────────────────── */
.show-pw-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7aadaa;
    transition: color 0.2s;
    z-index: 2;
}

.show-pw-btn:hover {
    color: #3d7070;
}

.eye-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    pointer-events: none;
}

/* Give password inputs right padding so text doesn't hide under the eye button */
#password,
#confirmPassword {
    padding-right: 42px !important;
}

/* ── Device binding warning ──────────────────────────────────── */
.device-warning {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff8e1;
    border: 1.5px solid #f9a825;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
}

.device-warning-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: #f57f17;
    margin-top: 1px;
}

.device-warning-icon svg {
    width: 22px;
    height: 22px;
    fill: #f57f17;
}

.device-warning-text {
    font-size: 13px;
    color: #5d4037;
    line-height: 1.5;
}

.device-warning-text strong:first-child {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #e65100;
    margin-bottom: 4px;
}

.device-warning-text p {
    margin: 0;
    font-size: 12.5px;
    color: #6d4c41;
}

/* ── Device confirm checkbox ─────────────────────────────────── */
.device-confirm-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 10px 12px;
    background: #f3f8f3;
    border: 1.5px solid #c8e6c9;
    border-radius: 8px;
}

.device-confirm-check {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #2c5f5f;
    cursor: pointer;
}

.device-confirm-row label {
    font-size: 13px;
    color: #1a4545;
    cursor: pointer;
    line-height: 1.5;
}

.device-confirm-row label strong {
    color: #2c5f5f;
}