.nice-select .list,
.dropdown-menu,
.select2-results__options,
ul.list {
  max-height: 250px !important;
  overflow-y: auto !important;
}

.auth-wrapper {
  width: 100%;
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  background:
    radial-gradient(circle at top left, rgba(2, 172, 237, 0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(234, 5, 139, 0.12), transparent 60%),
    #f5f7fb;
  box-sizing: border-box;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 32px 32px 30px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(15, 30, 60, 0.16);
  border: none;
  overflow: visible !important;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--cw-cyan, #02aced),
    var(--cw-pink, #ea058b),
    var(--cw-yellow, #ffc94a)
  );
  border-radius: 24px 24px 0 0;
}

.auth-header {
  font-weight: 800;
  font-size: 24px;
  color: var(--ink-900, #111827);
  margin: 10px 0 10px;
  text-align: center;
}

.auth-subheader {
  font-size: 14px;
  color: var(--ink-600, #4b5563);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}

.auth-link {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-600, #4b5563);
}

.auth-link a {
  font-weight: 600;
  color: var(--cw-pink, #ea058b);
  text-decoration: none;
}

.auth-link a:hover {
  text-decoration: underline;
}

.role-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 14px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid rgba(15, 30, 60, 0.06);
  box-shadow: 0 4px 14px rgba(15, 30, 60, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.role-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(15, 30, 60, 0.16);
  border-color: rgba(2, 172, 237, 0.7);
  background: linear-gradient(135deg, rgba(2, 172, 237, 0.04), rgba(234, 5, 139, 0.04));
}

.role-label {
  color: var(--ink-900, #111827);
  font-weight: 600;
  font-size: 16px;
}

.role-arrow {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cw-cyan, #02aced), var(--cw-pink, #ea058b));
  box-shadow: 0 6px 16px rgba(2, 172, 237, 0.4);
}

.form-group {
  margin-bottom: 16px;
}

.field-label {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
  display: block;
  text-align: left;
  color: var(--ink-800, #1f2933);
}

.form-control,
.dob-select {
  height: 44px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(15, 30, 60, 0.16);
  font-size: 14px;
  padding: 0 12px;
  background-color: #ffffff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  box-sizing: border-box;
}

.form-control:focus,
.dob-select:focus {
  outline: none;
  border-color: rgba(2, 172, 237, 0.9);
  box-shadow: 0 0 0 1px rgba(2, 172, 237, 0.35);
}

.dob-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.dob-select {
  flex: 1;
  cursor: pointer;
}

.text-danger {
  font-size: 12px;
  margin-top: 4px;
  display: block;
  text-align: left;
  color: #dc2626;
}

.text-muted {
  font-size: 12px;
  color: var(--ink-500, #6b7280);
  text-align: left;
}

.btn-cw-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  margin-top: 10px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--cw-cyan, #02aced), var(--cw-pink, #ea058b));
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(2, 172, 237, 0.4);
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.btn-cw-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(234, 5, 139, 0.45);
  opacity: 0.96;
}

.age-warning {
  background-color: rgba(255, 201, 74, 0.12);
  border: 1px solid rgba(255, 201, 74, 0.9);
  color: #854d0e;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 13px;
  text-align: left;
  line-height: 1.4;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 20px;
  color: var(--cw-cyan, #02aced);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

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

.remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 18px;
  color: var(--ink-600, #4b5563);
  font-size: 13px;
}

.remember-row input {
  width: 16px;
  height: 16px;
}

.auth-actions {
  margin-top: 4px;
}

.hidden {
  display: none !important;
}

@media (max-width: 576px) {
  .auth-card {
    padding: 26px 20px 24px;
    border-radius: 20px;
  }

  .auth-header {
    font-size: 22px;
  }
}
