/* Account pages (register) */
:root {
  --acc-pink: #c52762;
  --acc-pink-dark: #a81f50;
  --acc-ink: #262027;
  --acc-muted: #6b6168;
  --acc-line: #efe7eb;
}
body {
  background: #fff;
}
.auth-register {
  padding: 40px 16px;
  background:
    radial-gradient(circle at 12% 0, rgba(197, 39, 98, 0.12), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(197, 39, 98, 0.09), transparent 40%),
    #fbf8fa;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--acc-ink);
}
.auth-register .card {
  overflow: hidden;
  border: 1px solid var(--acc-line) !important;
  border-radius: 22px !important;
  background: #fff;
  box-shadow: 0 2px 4px rgba(38, 32, 39, 0.04), 0 24px 60px rgba(38, 32, 39, 0.1) !important;
  animation: acc-rise 0.45s ease both;
}
@keyframes acc-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* header: wordmark + title */
.auth-register .card-header {
  padding: 34px 30px 22px;
  background: #fff;
  border: 0;
  font-size: 14.5px;
  font-weight: 400 !important;
  color: var(--acc-muted);
}
.auth-register .card-header h3 {
  margin: 0 0 6px;
  padding: 0 !important;
}
.auth-register .card-header h3 a {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--acc-pink);
  text-decoration: none;
}
.auth-register .card-header h3 a::after {
  content: "®";
  margin-left: 2px;
  vertical-align: super;
  font-size: 12px;
  font-weight: 600;
}

.auth-register .card-body {
  padding: 8px 32px 28px !important;
}

/* messages */
.auth-register .alert {
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid #bfe3cd;
  border-radius: 12px;
  background: #eaf7f0;
  color: #146c43;
  font-size: 14px;
}

/* fields */
.auth-register .form-control,
.auth-register .form-select {
  height: 50px;
  padding: 0 16px;
  font-size: 14.5px;
  color: var(--acc-ink);
  background-color: #faf8f9;
  border: 1px solid var(--acc-line);
  border-radius: 12px;
  box-shadow: none;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.auth-register .form-select {
  padding-right: 40px;
}
.auth-register .form-control::placeholder {
  color: #aa9fa6;
}
.auth-register .form-control:hover,
.auth-register .form-select:hover {
  border-color: #dccfd6;
}
.auth-register .form-control:focus,
.auth-register .form-select:focus {
  background-color: #fff;
  border-color: var(--acc-pink);
  box-shadow: 0 0 0 4px rgba(197, 39, 98, 0.13);
}

/* password fields: input + eye button as one control */
.auth-register .input-group {
  flex-wrap: nowrap;
}
.auth-register .input-group .form-control {
  border-right: 0;
  border-radius: 12px 0 0 12px;
}
.auth-register .input-group-text {
  width: 50px;
  justify-content: center;
  color: #8a7f86;
  background: #faf8f9;
  border: 1px solid var(--acc-line);
  border-left: 0;
  border-radius: 0 12px 12px 0;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.auth-register .input-group:focus-within .form-control,
.auth-register .input-group:focus-within .input-group-text {
  border-color: var(--acc-pink);
  background-color: #fff;
}
.auth-register .input-group:focus-within .form-control {
  box-shadow: none;
}
.auth-register .input-group:focus-within {
  border-radius: 12px;
  box-shadow: 0 0 0 4px rgba(197, 39, 98, 0.13);
}
.auth-register .input-group-text:hover {
  color: var(--acc-pink);
}

/* validation errors rendered by {{ form.x.errors }} */
.auth-register .errorlist {
  margin: 6px 2px 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: #b02a4f;
}

/* terms */
.auth-register .form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-left: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--acc-muted);
}
.auth-register .form-check-input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  float: none;
  border: 1px solid #d5c8cf;
  border-radius: 5px;
}
.auth-register .form-check-input:checked {
  background-color: var(--acc-pink);
  border-color: var(--acc-pink);
}
.auth-register .form-check-input:focus {
  border-color: var(--acc-pink);
  box-shadow: 0 0 0 4px rgba(197, 39, 98, 0.13);
}
.auth-register .form-check-label a {
  color: var(--acc-pink);
  font-weight: 600;
  text-decoration: none;
}
.auth-register .form-check-label a:hover {
  text-decoration: underline;
}

/* submit */
.auth-register .btn-primary {
  height: 52px;
  font-size: 15.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #d63372, #b01f55);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(197, 39, 98, 0.3);
  transition: filter 0.15s, box-shadow 0.15s, transform 0.05s;
}
.auth-register .btn-primary:hover,
.auth-register .btn-primary:focus {
  background: linear-gradient(135deg, #d63372, #b01f55);
  filter: brightness(1.07);
  box-shadow: 0 12px 26px rgba(197, 39, 98, 0.38);
}
.auth-register .btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 5px 12px rgba(197, 39, 98, 0.3);
}

/* footer */
.auth-register .card-footer {
  padding: 18px 24px;
  background: #faf8f9 !important;
  border-top: 1px solid var(--acc-line);
  font-size: 14px;
  color: var(--acc-muted);
}
.auth-register .card-footer a {
  color: var(--acc-pink);
  text-decoration: none;
}
.auth-register .card-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 575px) {
  .auth-register {
    padding: 20px 12px;
  }
  .auth-register .card-body {
    padding: 8px 20px 24px !important;
  }
  .auth-register .card-header {
    padding: 28px 20px 18px;
  }
  .auth-register .card-header h3 a {
    font-size: 32px;
  }
}

/* Login page (shares the register look) */
.auth-login .col {
  max-width: 440px;
}
.auth-login .card {
  padding-top: 8px;
}
.auth-login .card > h3 {
  margin: 0;
  padding: 30px 30px 4px !important;
}
.auth-login .card > h3 a {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--acc-pink);
  text-decoration: none;
}
.auth-login .card > h3 a::after {
  content: "®";
  margin-left: 2px;
  vertical-align: super;
  font-size: 12px;
  font-weight: 600;
}
.auth-login .card > h3::after {
  content: "Welcome back. Sign in to continue.";
  display: block;
  margin-top: 8px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--acc-muted);
}
.auth-login .card-body {
  padding: 18px 32px 30px !important;
}

/* icon + input (+ eye) joined into one control */
.auth-login .input-group > .input-group-text {
  width: 50px;
  height: 50px;
  justify-content: center;
  color: #8a7f86;
  background: #faf8f9;
  border: 1px solid var(--acc-line);
}
.auth-login .input-group > .input-group-text:first-child {
  border-right: 0;
  border-radius: 12px 0 0 12px;
}
.auth-login .input-group > .form-control {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  padding-left: 0;
}
.auth-login .input-group > .form-control:last-child {
  border-right: 1px solid var(--acc-line);
  border-radius: 0 12px 12px 0;
  padding-right: 16px;
}
.auth-login .input-group > .input-group-text:last-child {
  border-left: 0;
  border-right: 1px solid var(--acc-line);
  border-radius: 0 12px 12px 0;
}
.auth-login .input-group:focus-within > .form-control:last-child {
  border-right-color: var(--acc-pink);
}
.auth-login .input-group:focus-within > .input-group-text:last-child {
  border-right-color: var(--acc-pink);
}
.auth-login .input-group.mb-3 {
  margin-bottom: 16px !important;
}
.auth-login .btn-primary {
  margin-top: 6px;
  margin-bottom: 20px !important;
}
.auth-login .login_create_account {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--acc-line);
  font-size: 14px;
}
.auth-login .login_create_account .float-start,
.auth-login .login_create_account .float-end {
  float: none !important;
}
.auth-login .login_create_account a {
  color: var(--acc-pink);
  font-weight: 600;
  text-decoration: none;
}
.auth-login .login_create_account a:hover {
  text-decoration: underline;
}
@media (max-width: 575px) {
  .auth-login .card-body {
    padding: 14px 20px 24px !important;
  }
  .auth-login .card > h3 {
    padding: 26px 20px 4px !important;
  }
}
.auth-login .col {
  flex: 0 0 auto;
  width: 440px;
  max-width: 100%;
}
.auth-login .login_create_account a {
  white-space: nowrap;
}

/* Password reset pages (reset, done, confirm, complete) */
.auth-reset .login {
  background: transparent !important;
  box-shadow: none !important;
}
.auth-reset .row > [class*="col"] {
  flex: 0 0 auto;
  width: 460px;
  max-width: 100%;
}
.auth-reset .card-header {
  padding: 34px 30px 8px;
  background: #fff;
  border: 0;
  text-align: center;
  font-size: 14.5px;
  color: var(--acc-muted);
}
.auth-reset .card-header br {
  display: none;
}
.auth-reset .card-header a {
  display: inline-block;
  margin-bottom: 6px !important;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 38px !important;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--acc-pink);
  text-decoration: none;
}
.auth-reset .card-header a::after {
  content: "®";
  margin-left: 2px;
  vertical-align: super;
  font-size: 12px;
  font-weight: 600;
}
.auth-reset .card-header p {
  margin: 0;
}
.auth-reset .card-body {
  padding: 22px 32px 32px !important;
}
.auth-reset .card-body br {
  display: none;
}
.auth-reset .card-title {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--acc-ink);
  word-break: break-word;
}
.auth-reset .card-body > p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--acc-muted);
}
.auth-reset .card-body > p .fw-bold {
  color: var(--acc-ink);
}
.auth-reset .form-group {
  margin-bottom: 18px !important;
}
.auth-reset .input-group.mb-2 {
  margin-bottom: 12px !important;
}
.auth-reset .form-text {
  display: block;
  font-size: 12.5px;
  line-height: 1.55;
  color: #8a7f86 !important;
}
.auth-reset .form-text ul {
  margin: 0;
  padding: 12px 16px 12px 30px;
  border-radius: 12px;
  background: #faf8f9;
}
.auth-reset .form-text li + li {
  margin-top: 3px;
}

/* buttons: dark -> brand pink */
.auth-reset .btn-dark,
.auth-reset .custom-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 20px;
  font-size: 15.5px;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none;
  background: linear-gradient(135deg, #d63372, #b01f55);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(197, 39, 98, 0.3);
  transition: filter 0.15s, box-shadow 0.15s, transform 0.05s;
}
.auth-reset .btn-dark i,
.auth-reset .custom-submit-btn i {
  margin: 0 !important;
}
.auth-reset .btn-dark:hover,
.auth-reset .btn-dark:focus,
.auth-reset .custom-submit-btn:hover {
  background: linear-gradient(135deg, #d63372, #b01f55);
  filter: brightness(1.07);
  box-shadow: 0 12px 26px rgba(197, 39, 98, 0.38);
}
.auth-reset .btn-dark:active,
.auth-reset .custom-submit-btn:active {
  transform: translateY(1px);
}

/* alerts */
.auth-reset .alert {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
}
.auth-reset .alert-danger {
  border: 1px solid #f3c2cf;
  background: #fdf0f4;
  color: #a81f50;
}
.auth-reset .alert-danger ul {
  padding-left: 18px;
}
.auth-reset .alert-success {
  border: 1px solid #bfe3cd;
  background: #eaf7f0;
  color: #146c43;
}
@media (max-width: 575px) {
  .auth-reset .card-body {
    padding: 18px 20px 26px !important;
  }
  .auth-reset .card-header {
    padding: 28px 20px 6px;
  }
}

/* reset: wordmark registered mark sits tight; inputs without a leading icon */
.auth-reset .card-header a::after {
  margin-left: -0.3em;
}
.auth-reset .input-group > .form-control:first-child {
  padding-left: 16px;
  border-left: 1px solid var(--acc-line);
  border-radius: 12px 0 0 12px;
}
.auth-reset .input-group:focus-within > .form-control:first-child {
  border-left-color: var(--acc-pink);
}
