:root {
  --c-primary: #4f46e5;
  --c-primary-dark: #121125;
  --c-primary-light: #928df3;
  --c-primary-alt: #0069d9;
  --c-secondary: #ef4c0d;
  --c-secondary-dark: #a03409;
  --c-gray-light: #d1d5db;
  --c-gray: #6c6c6c;
  --c-gray-dark: #333333;
  --c-warning: #f1c40f;
  --c-safe: #61ce70;
  --c-safe-dark: #37a346;
  --c-danger: #c22929;

  --c-bg: #f6f7fb;
  --c-surface: #ffffff;
  --c-text: #333;
  --c-text-inverse: #fff;
  --c-border: #e5e7eb;

  --radius: 5px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --transition: 0.2s ease;
  --ff-base: "Poppins", system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji",
    sans-serif;
}
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  font-size: 16px;
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
    url("/assets/images/75041.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #333;
}
.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
}

.login-card {
  background: white;
  padding: 3rem 2.5rem;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  width: 80%;
  max-width: 400px;
  text-align: center;
}

.login-card h2 {
  margin-bottom: 1rem;
  font-size: 1.75rem;
  color: #333;
}

.login-card input {
  width: 100%;
  padding: 12px;
  margin: 0.5rem 0 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
}

.login-form {
  max-width: 320px;
  margin: 0 auto;
}

.form-group {
  position: relative;
}

.form-group input {
  width: 100%;
  padding: 12px 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: none;
}

.form-group label {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: #777;
  transition: 0.2s ease all;
  pointer-events: none;
}
/* Buttons */
a.btn {
  color: var(--c-text-inverse);
}
.btn {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  color: var(--c-text-inverse);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: none;
  border-radius: var(--radius);
  transition: background-color 0.3s ease;
}
.btn-sm {
  font-size: 0.75rem;
  padding: 0.2rem 0.4rem;
}

.btn-primary {
  background-color: var(--c-primary);
}

.btn-primary:hover {
  background-color: var(--c-primary-alt);
}
.btn-secondary {
  background-color: var(--c-secondary);
}

.btn-secondary:hover {
  background-color: var(--c-secondary-dark);
}

.btn-gray {
  background-color: var(--c-gray);
}

.btn-gray:hover {
  background-color: var(--c-gray-dark);
}

.btn-accent,.btn-safe {
  background-color: var(--c-safe);
}

.btn-accent:hover,.btn-safe:hover {
  background-color: var(--c-safe-dark);
}

.btn-danger {
  background-color: var(--c-danger);
}

.btn-danger:hover {
  background-color: #c0392b;
}
.btn-registration, .btn-login {
  width:250px;
}
/* When input has focus or value */
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
  top: 0;
  left: 8px;
  font-size: 0.8rem;
  color: #333;
  background: #fff;
  padding: 0 4px;
}


@media (min-width: 768px) {
  .login-card {
    width: 80%;
  }
}
/* Checkbox row styling */
.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0 0.75rem;
  justify-content: flex-start;
}
.form-check input[type="checkbox"] {
  width: auto;
  margin: 0;
}
.form-check label {
  position: static;
  transform: none;
  color: #333;
  font-size: 0.95rem;
  cursor: pointer;
}

.back-link {
  display: inline-block;
  color: #4a6cf7;
  text-decoration: none;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.back-link:hover {
  text-decoration: underline;
}

.muted {
  color: #6b7280;
  font-size: 0.95rem;
  margin: 0;
  text-align: center;
}

.register-card {
  max-width: 720px;
  text-align: left;
  background: white;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.register-card h2 {
  text-align: center;
}

.stepper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0 0 1.25rem;
}

.stepper .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d1d5db;
  transition: background 0.2s ease;
}

.stepper .dot.active {
  background: linear-gradient(to right, #4a6cf7, #2b52db);
}

.register-form {
  display: none;
  margin-top: 1.5rem;
}

.register-form.is-active {
  display: block;
}

.register-card .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.float-group {
  position: relative;
}

.float-group input,
.float-group select,
.float-group textarea {
  width: 100%;
  padding: 12px 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  background: #fff;
  outline: none;
}

.float-group select {
  height: 46px;
}

.float-group label {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #777;
  background: #fff;
  padding: 0 6px;
  transition: 0.15s ease;
  pointer-events: none;
}

.float-group.focused label,
.float-group.filled label {
  top: -8px;
  font-size: 0.8rem;
  color: #333;
}

.form-subheading {
  margin: 1.5rem 0 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: #333;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.form-actions button {
  width: auto;
  padding: 12px 28px;
}

.hidden {
  display: none !important;
}

.form-alert {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.2);
  color: #7f1d1d;
  font-size: 0.95rem;
}

.form-alert ul {
  margin: 0;
  padding-left: 1.1rem;
}

.form-alert li {
  margin: 0.25rem 0;
}

.req {
  color: #dc2626;
  margin-left: 4px;
}

@media (max-width: 540px) {
  .register-card {
    padding: 2.5rem 1.5rem;
  }
  .register-card .form-grid {
    grid-template-columns: 1fr;
  }
  .form-actions {
    justify-content: stretch;
  }
  .form-actions button {
    width: 100%;
  }
}