/* Assured Assist - login / register page enhancements.
   Loaded AFTER snipets.css so the existing colours/gradient stay as they are. */
.aa-auth .aa-auth-brand {
  display: inline-block;
  margin-bottom: 6px;
}
.aa-auth .aa-auth-logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: 100%;
}

.aa-auth .aa-select {
  border-radius: 1.5rem;
  height: 48px;
  padding: 0.375rem 1.75rem;
}
.aa-auth .form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(43, 114, 230, 0.2);
}

/* buttons */
.aa-auth .aa-submit {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}
.aa-auth .aa-submit:hover,
.aa-auth .aa-submit:focus {
  transform: translateY(-2px);
  filter: brightness(0.94);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}
.aa-auth .aa-submit:active {
  transform: translateY(0);
  box-shadow: none;
}
.aa-auth .aa-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* links under the form */
.aa-auth .aa-auth-row {
  display: flex;
  justify-content: space-between;
  margin: 4px 0 18px;
  font-size: 14px;
}
.aa-auth .aa-auth-alt {
  margin: 16px 0 0;
  text-align: center;
  font-size: 14px;
}
.aa-auth .aa-auth-home {
  margin-top: 6px;
}
.aa-auth a {
  transition: opacity 0.2s ease;
}
.aa-auth a:hover {
  opacity: 0.8;
}

/* message box (ajax success / error) */
.aa-auth #msg_block:empty {
  display: none;
}
.aa-auth #msg_block {
  margin: 8px 0 14px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
}
.aa-auth #msg_block.error-msg {
  background: #fdecea;
  color: #b3261e;
}
.aa-auth #msg_block.success-msg {
  background: #e7f6ec;
  color: #1e6b3a;
}

@media (max-width: 575px) {
  .aa-auth .aa-auth-logo {
    height: 46px;
  }
  .aa-auth .card-body {
    padding: 1.5rem 1.1rem;
  }
}

/* ===== v2: matches the new home page (navy gradient, soft cards, one hover language) ===== */
html,
body {
  min-height: 100%;
}
body {
  background:
    radial-gradient(
      800px 420px at 90% -10%,
      rgba(66, 205, 245, 0.22),
      transparent 60%
    ),
    radial-gradient(
      700px 420px at -5% 105%,
      rgba(43, 114, 230, 0.35),
      transparent 60%
    ),
    linear-gradient(135deg, #0c1326 0%, #13203f 55%, #0e2a5e 100%) fixed !important;
  font-family:
    "Nunito Sans",
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
}
.aa-auth {
  background: transparent !important;
}
.aa-auth .card-signin {
  border: 0;
  border-radius: 20px !important;
  background: #fff;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.aa-auth .card-signin:hover {
  transform: translateY(-3px);
  box-shadow: 0 38px 80px rgba(0, 0, 0, 0.45);
}
.aa-auth .card-body {
  padding: 2.25rem 2.25rem 2rem;
}
.aa-auth .aa-auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.aa-auth .aa-auth-logo {
  height: 60px;
  transition: transform 0.25s ease;
}
.aa-auth .aa-auth-brand:hover .aa-auth-logo {
  transform: scale(1.05);
}
.aa-auth .cardsign {
  text-align: center;
  font-weight: 800;
  font-size: 22px;
  color: #1b1b1b;
  margin: 6px 0 22px;
  text-transform: none;
  letter-spacing: 0;
}
.aa-auth .form-control {
  border-radius: 12px !important;
  border: 1px solid #e0e6f0;
  background: #f8faff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.aa-auth .form-control:hover {
  border-color: #b9c8e6;
  background: #fff;
}
.aa-auth .form-control:focus {
  border-color: #2b72e6;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(43, 114, 230, 0.15);
}
.aa-auth .aa-submit {
  border: 0;
  border-radius: 12px !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #2b72e6, #1856bb) !important;
  box-shadow: 0 8px 20px rgba(43, 114, 230, 0.35);
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.aa-auth .aa-submit:hover,
.aa-auth .aa-submit:focus {
  filter: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(43, 114, 230, 0.5);
}
.aa-auth .aa-submit:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(43, 114, 230, 0.4);
}
.aa-auth a {
  color: #2b72e6;
  font-weight: 600;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
  display: inline-block;
}
.aa-auth a:hover {
  opacity: 1;
  color: #1856bb;
  transform: translateX(2px);
}
.aa-auth .aa-auth-brand:hover {
  transform: none;
}
.aa-auth #msg_block.alert-danger,
.aa-auth #msg_block.error-msg {
  background: #fdecea;
  color: #b3261e;
  border: 0;
}
.aa-auth #msg_block.alert-success,
.aa-auth #msg_block.success-msg {
  background: #e7f6ec;
  color: #1e6b3a;
  border: 0;
}
.aa-auth #msg_block.alert {
  margin: 8px 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
}
@media (prefers-reduced-motion: reduce) {
  .aa-auth * {
    transition: none !important;
  }
}
.aa-auth .aa-submit {
  margin-top: 6px;
}
.aa-auth .aa-auth-home {
  margin-top: 14px;
}

/* ===== v3: static labels above inputs (no floating labels, so autofilled
   values can never overlap the label text) ===== */
.aa-auth .aa-field,
.aa-auth .form-label-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  position: static;
}
.aa-auth .aa-field > label,
.aa-auth .form-label-group > label {
  position: static !important;
  order: -1;
  margin: 0 0 6px !important;
  padding: 0 !important;
  color: #1f2a3c !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  opacity: 1 !important;
  pointer-events: auto;
  transition: none;
}
.aa-auth .aa-field > .form-control,
.aa-auth .form-label-group > input.form-control,
.aa-auth .form-label-group > select.form-control {
  height: 48px;
  padding: 0.6rem 1rem !important;
  color: #1f2a3c;
  font-size: 15px;
}
.aa-auth .form-label-group > input:not(:placeholder-shown) {
  padding: 0.6rem 1rem !important;
}
.aa-auth .form-control::placeholder {
  color: #7b8698;
  opacity: 1;
}
.aa-auth input:-webkit-autofill,
.aa-auth input:-webkit-autofill:focus {
  -webkit-text-fill-color: #1f2a3c;
  box-shadow: 0 0 0 1000px #f8faff inset;
  transition: background-color 9999s ease-out 0s;
}
