/* Registration — minimal, aligned with public site (slate + #174545) */

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #f1f5f9;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body::before {
  display: none;
}

.login-content {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem 3rem;
  background: transparent !important;
  margin: 0 !important;
}

.register-form-container {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem 1.75rem 2.5rem;
  max-width: 920px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 1rem;
  text-decoration: none;
}

.close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.register-form-title {
  color: #0f172a;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.alert {
  border-radius: 10px;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.alert-danger {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  color: #334155;
  font-weight: 600;
  margin-bottom: 0.35rem;
  display: block;
  font-size: 0.875rem;
}

.form-control,
.form-select {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  color: #0f172a;
  font-size: 0.9375rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #174545;
  box-shadow: 0 0 0 3px rgba(0, 112, 235, 0.12);
  outline: none;
  background: #fff;
  color: #0f172a;
}

.form-control::placeholder {
  color: #94a3b8;
}

.form-select option {
  background: #fff;
  color: #0f172a;
}

.input-group {
  position: relative;
}

.input-group .form-control {
  padding-right: 2.75rem;
}

.input-group > .btn,
.input-group > .btn-outline-secondary {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0.35rem;
}

.input-group > .btn:hover,
.input-group > .btn-outline-secondary:hover {
  color: #0f172a;
  background: transparent;
}

.form-check-input {
  border-color: #cbd5e1;
  accent-color: #174545;
}

.form-check-input:checked {
  background-color: #174545;
  border-color: #174545;
}

.form-check-label {
  color: #475569;
  font-size: 0.875rem;
}

.forgot-password-link {
  color: #174545;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.forgot-password-link:hover {
  color: #0f3030;
  text-decoration: underline;
}

.btn-register {
  display: block;
  margin-inline: auto;
  width: 100%;
  max-width: 320px;
  padding: 0.75rem 1.25rem;
  background: #174545;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.btn-register::before {
  display: none;
}

.btn-register:hover {
  background: #0f3030;
  box-shadow: 0 4px 14px rgba(0, 112, 235, 0.35);
  transform: none;
}

.register-link {
  text-align: center;
  margin-top: 1.25rem;
  color: #64748b;
  font-size: 0.875rem;
}

.register-link a {
  color: #174545;
  font-weight: 600;
  text-decoration: none;
}

.register-link a:hover {
  text-decoration: underline;
  color: #0f3030;
}

.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  overflow: visible;
}

.card-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0 !important;
  padding: 0.85rem 1.1rem;
}

.card-header h5 {
  color: #0f172a;
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
}

.card-body {
  padding: 1.1rem 1.15rem;
}

.text-danger {
  color: #b91c1c !important;
  font-size: 0.8125rem;
}

.invalid-feedback {
  color: #b91c1c;
  font-size: 0.8125rem;
}

/* Do not hide .row / .col-md-* — registration form uses Bootstrap grid inside cards */

.login-content .register-form-container {
  display: block;
}

.login-content .btn-primary {
  background: #174545;
  border-color: #174545;
  border-radius: 10px;
  font-weight: 600;
}

.login-content .btn-primary:hover {
  background: #0f3030;
  border-color: #0f3030;
}

@media (max-width: 768px) {
  .register-form-container {
    padding: 1.5rem 1.15rem;
  }

  .register-form-title {
    font-size: 1.3rem;
  }
}
