/* VRISTO cover/boxed forms, panels, alerts and account settings adapted for Razor.
   Selected styles only; no Alpine/demo scripts or runtime CSS compiler required. */
:root {
  font-family: Nunito, "Segoe UI", sans-serif;
  color: #0e1726;
  background: #fafafa;
  line-height: 1.6;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #4361ee;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #4361ee80;
}
.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: white;
  box-shadow: 0 0 10px #1f2d3d12;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0e1726;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.brand > span { min-width: 0; }
.brand > img { flex-shrink: 0; }
.brand-accent {
  color: #4361ee;
}
.brand img {
  max-width: 140px;
  max-height: 45px;
}
.account-header nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.account-shell {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.anonymous {
  background:
    radial-gradient(at top left, #eaf1ff, transparent 60%),
    radial-gradient(at bottom right, #ebe4f7, #fafafa 70%);
  min-height: 100vh;
}
.anonymous .account-shell {
  max-width: 520px;
  margin: 3rem auto;
}
.account-panel {
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 24px #1f2d3d12;
  min-width: 0;
}
.anonymous .with-cover {
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.with-cover .account-panel {
  border-radius: 0 8px 8px 0;
}
.auth-cover {
  position: relative;
  overflow: hidden;
  border-radius: 8px 0 0 8px;
  background: linear-gradient(135deg, #4361ee, #805dca);
  min-height: 560px;
  display: flex;
  align-items: end;
  color: white;
  padding: 2rem;
}
.auth-cover > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
}
.auth-cover > div {
  position: relative;
  text-shadow: 0 2px 12px #0008;
}
.auth-cover h2 {
  font-size: 2rem;
}
h1 {
  font-size: 1.6rem;
  margin-top: 0;
}
h2 {
  font-size: 1.2rem;
}
form {
  margin: 1.25rem 0;
}
label {
  display: block;
  color: #3b3f5c;
  font-weight: 600;
}
input:not([type="checkbox"]):not([type="hidden"]),
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid #e0e6ed;
  border-radius: 6px;
  background: white;
  color: #0e1726;
  margin: 0.3rem 0 0.75rem;
}
input:focus,
textarea:focus {
  border-color: #4361ee;
}
input[type="checkbox"] {
  accent-color: #4361ee;
}
input:disabled {
  background: #f1f2f3;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  background: #4361ee;
  color: white;
  border: 1px solid #4361ee;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 8px #4361ee30;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: #354ed3;
  text-decoration: none;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.busy:before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
[role="alert"]:not(:empty),
.validation-summary-errors {
  background: #fff5f5;
  color: #e7515a;
  border: 1px solid #e7515a30;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  margin: 1rem 0;
}
[role="status"]:not(:empty) {
  background: #ddf5f0;
  color: #007c3f;
  padding: 0.85rem 1rem;
  border-radius: 6px;
}
.validation-summary-valid {
  display: none;
}
dl {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 3fr;
  gap: 0.75rem 1.5rem;
  overflow-wrap: anywhere;
}
dt {
  color: #888ea8;
}
dd {
  margin: 0;
}
section {
  margin: 1.5rem 0;
}
fieldset {
  border: 1px solid #e0e6ed;
  border-radius: 6px;
  padding: 1rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th,
td {
  padding: 0.65rem;
  text-align: left;
  border-bottom: 1px solid #e0e6ed;
}
th {
  background: #f6f8fa;
}
footer {
  text-align: center;
  color: #888ea8;
  padding: 1.5rem;
  font-size: 0.85rem;
}
.profile-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.maintenance {
  text-align: center;
}
.maintenance img {
  max-width: 360px;
  width: 100%;
}
@media (max-width: 760px) {
  .anonymous .with-cover {
    display: block;
    max-width: 520px;
  }
  .auth-cover {
    display: none;
  }
  .account-header {
    padding: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .account-panel {
    padding: 1.25rem;
  }
  .account-shell {
    overflow-x: auto;
  }
  dl {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  dd {
    margin-bottom: 0.75rem;
  }
  .with-cover .account-panel {
    border-radius: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }
}
.required-mark, .field-error { color: #e7515a; }
.branded-heading { display: flex; align-items: center; gap: .4em; }
.heading-icon { width: 1.2em; height: 1.2em; flex: 0 0 1.2em; color: #4361ee; }
.public-header { background: #fff; border-bottom: 1px solid #e0e6ed; box-shadow: 0 1px 8px #0000000d; }
.account-header .brand img { width: 1.25em; height: 1.25em; object-fit: contain; }
.field-error { display: block; font-size: .85rem; margin-block: .25rem; }
input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true] { border-color: #e7515a; }
:root { --launcher-border: #e0e6ed; }
.client-launcher { list-style: none; padding: 0; margin: 1rem 0; border: 1px solid var(--launcher-border); border-radius: .5rem; overflow: hidden; }
.client-launcher li + li { border-top: 1px solid var(--launcher-border); }
.client-launcher-item { display: flex; align-items: center; gap: 1rem; padding: 1rem; text-decoration: none; color: inherit; overflow-wrap: anywhere; }
.client-launcher-item[href]:hover { background: #f5f7ff; }
.client-launcher-item[aria-disabled="true"] { cursor: default; color: #6b7280; }
.client-launcher-item img, .client-no-image { width: 3rem; height: 3rem; flex: 0 0 3rem; object-fit: contain; border-radius: .375rem; }
.client-no-image { display: grid; place-items: center; background: #f1f2f3; }
.client-no-image svg { width: 1.75rem; height: 1.75rem; }
.client-launcher-item small { display: block; font-size: .8rem; margin-top: .25rem; }
.auth-error-page { text-align: center; }
.auth-error-image { display: block; width: 100%; max-width: 32rem; margin: 0 auto 1.5rem; }
