:root {
  --sccs-bg: #f6f7fb;
  --sccs-text: #162033;
  --sccs-muted: #5f6b7c;
  --sccs-border: #d9dee8;
  --sccs-primary: #31425f;
  --sccs-primary-strong: #243247;
  --sccs-accent: #f46523;
  --sccs-ring: rgba(244, 101, 35, .25);
  --sccs-shadow: 0 24px 70px rgba(22, 32, 51, .15);
}

body,
.sccs-auth-body {
  background: var(--sccs-bg);
  color: var(--sccs-text);
  min-height: 100vh;
}

.sccs-auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(circle at 12% 18%, rgba(244, 101, 35, .14), transparent 26rem), radial-gradient(circle at 82% 12%, rgba(49, 66, 95, .14), transparent 24rem), linear-gradient(135deg, #f8f9fc 0%, #eef2f7 100%);
}

.sccs-auth-shell:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(49, 66, 95, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(49, 66, 95, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 78%);
}

.sccs-auth-main {
  width: 100%;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 3.5rem);
  position: relative;
  z-index: 1;
}

.sccs-auth-container {
  width: min(100%, 440px);
}

.sccs-auth-panel {
  width: 100%;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(217, 222, 232, .9);
  border-radius: 8px;
  box-shadow: var(--sccs-shadow);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  backdrop-filter: blur(16px);
}

.sccs-auth-card-header,
.sccs-auth-card-content,
.sccs-auth-card-footer {
  width: 100%;
}

.sccs-auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.sccs-auth-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 7.5rem;
  height: auto;
  min-height: 3.25rem;
  padding: .55rem .75rem;
  border-radius: 8px;
  background: var(--sccs-primary);
  text-decoration: none;
}

.sccs-auth-mark img {
  width: 100%;
  height: auto;
  display: block;
}



.sccs-auth-brand p,
.sccs-auth-required,
.sccs-auth-info,
.sccs-auth-content p {
  color: var(--sccs-muted);
}

.sccs-auth-brand p {
  margin: 0;
  font-size: .92rem;
}

.sccs-auth-heading {
  text-align: center;
  margin-bottom: 1.25rem;
}

.sccs-auth-heading h1 {
  margin: 0;
  color: var(--sccs-text);
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 700;
}

.sccs-auth-content p {
  font-size: .94rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.sccs-auth-intro {
  text-align: center;
}

.sccs-auth-content a,
.sccs-auth-info a,
.sccs-auth-footer a {
  color: var(--sccs-accent);
  font-weight: 600;
  text-decoration: none;
}

.sccs-auth-content a:hover,
.sccs-auth-info a:hover,
.sccs-auth-footer a:hover {
  color: #d94f17;
  text-decoration: underline;
}

.sccs-auth-panel form {
  width: 100%;
}

.sccs-auth-panel .space-y-4>:not([hidden])~:not([hidden]) {
  margin-top: 1rem;
}

.sccs-auth-panel .form-floating {
  margin-top: 0;
}

.sccs-input,
.sccs-auth-panel .form-control {
  height: 3.4rem;
  border-radius: 8px;
  border: 1px solid var(--sccs-border);
  color: var(--sccs-text);
  background: #fff;
  box-shadow: 0 1px 2px rgba(22, 32, 51, .04);
}

.sccs-input:focus,
.sccs-auth-panel .form-control:focus {
  border-color: var(--sccs-accent);
  box-shadow: 0 0 0 4px var(--sccs-ring);
}

.sccs-field-error {
  line-height: 1.35;
}

.sccs-auth-panel label {
  color: var(--sccs-muted);
}

.sccs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: var(--sccs-accent) !important;
}

.sccs-auth-content form .sccs-button,
.sccs-auth-content form [type=submit],
.sccs-auth-alt-form .sccs-button,
.sccs-auth-alt-form [type=submit] {
  width: 100%;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 700;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.sccs-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(49, 66, 95, .18);
}

.sccs-button:disabled,
.sccs-button[aria-disabled=true] {
  cursor: not-allowed;
  opacity: .62;
  transform: none;
  box-shadow: none;
}

.sccs-auth-panel .bg-primary-600 {
  background-color: var(--sccs-primary);
}

.sccs-auth-panel .hover\:bg-primary-700:hover {
  background-color: var(--sccs-primary-strong);
}

.sccs-auth-panel .bg-secondary-100 {
  background-color: #eef1f6;
}

.sccs-auth-content form button.text-primary-600 {
  border: 1px solid var(--sccs-border);
  background: #fff;
  color: var(--sccs-primary);
}

.sccs-auth-content form button.text-primary-600:hover {
  border-color: var(--sccs-accent);
  color: var(--sccs-accent);
}

.sccs-auth-panel .flex.items-center.justify-between {
  gap: 1rem;
  font-size: .9rem;
}

.sccs-check {
  min-height: 1.5rem;
}

.sccs-auth-panel [type=checkbox],
.sccs-auth-panel [type=radio] {
  border-radius: 4px;
  border-color: var(--sccs-border);
  color: var(--sccs-accent);
}

.sccs-auth-panel [type=radio] {
  border-radius: 999px;
}

.sccs-check-label {
  line-height: 1.35;
}

.sccs-radio {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}

.sccs-radio-label {
  line-height: 1.35;
}

.sccs-button-group {
  gap: .65rem;
}

.sccs-alert {
  margin-bottom: 1rem;
  line-height: 1.45;
}

.sccs-link {
  align-items: center;
  gap: .25rem;
}

.sccs-auth-info {
  margin-top: 1.25rem;
  font-size: .94rem;
}

.sccs-auth-secondary-action {
  color: var(--sccs-muted);
}

.sccs-auth-required {
  margin-top: .75rem;
  font-size: .85rem;
}

.sccs-auth-alt-form {
  margin-top: 1rem;
}

.sccs-auth-nav {
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.sccs-provider-separator,
.sccs-auth-panel .separate {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--sccs-muted);
  margin: 1.25rem 0 .9rem;
  padding-top: 0;
}

.sccs-provider-separator:before,
.sccs-provider-separator:after,
.sccs-auth-panel .separate:before,
.sccs-auth-panel .separate:after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--sccs-border);
}

.sccs-provider-grid,
.sccs-auth-panel .grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sccs-provider-link,
.sccs-auth-panel [data-provider] {
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.sccs-provider-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(22, 32, 51, .12);
}

.sccs-provider-icon svg {
  width: 100%;
  height: 100%;
}

.sccs-locale {
  display: flex;
  justify-content: center;
}

.sccs-locale button {
  width: auto;
  min-height: 2.35rem;
  padding: .45rem .75rem;
  border: 1px solid var(--sccs-border);
  border-radius: 8px;
  background: #fff;
  color: var(--sccs-text);
}

.sccs-locale-menu {
  min-width: 10rem;
  border: 1px solid var(--sccs-border);
  background: #fff;
  box-shadow: 0 18px 34px rgba(22, 32, 51, .14);
}

.sccs-locale-option {
  white-space: nowrap;
}

.sccs-locale-option:hover {
  background: #f6f7fb;
}

.sccs-auth-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .45rem .75rem;
  color: var(--sccs-muted);
  font-size: .82rem;
  text-align: center;
}

.bg-red-100,
.bg-orange-100,
.bg-blue-100,
.bg-green-100 {
  border-radius: 8px;
  border: 1px solid rgba(217, 222, 232, .9);
}

@media (max-width:520px) {
  .sccs-auth-main {
    align-items: flex-start;
    min-height: auto;
    padding: 1rem;
  }

  .sccs-auth-panel {
    margin-top: .75rem;
  }

  .sccs-auth-heading h1 {
    font-size: 1.35rem;
  }

  .sccs-auth-panel .flex.items-center.justify-between {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-color-scheme:dark) {
  :root {
    --sccs-bg: #101722;
    --sccs-text: #f5f7fb;
    --sccs-muted: #c0cad8;
    --sccs-border: #334154;
    --sccs-primary: #f46523;
    --sccs-primary-strong: #d94f17;
    --sccs-ring: rgba(244, 101, 35, .28);
    --sccs-shadow: 0 24px 70px rgba(0, 0, 0, .36);
  }

  .sccs-auth-shell {
    background: radial-gradient(circle at 18% 16%, rgba(244, 101, 35, .2), transparent 25rem), radial-gradient(circle at 82% 10%, rgba(81, 105, 146, .2), transparent 24rem), linear-gradient(135deg, #101722 0%, #182234 100%);
  }

  .sccs-auth-panel {
    background: rgba(21, 31, 46, .92);
    border-color: rgba(51, 65, 84, .95);
  }

  .sccs-auth-panel .form-control,
  .sccs-auth-panel [data-provider] {
    background: #101722;
    border-color: var(--sccs-border);
    color: #fff;
  }

  .sccs-provider-link,
  .sccs-locale button,
  .sccs-locale-menu {
    background: #101722;
    border-color: var(--sccs-border);
    color: #fff;
  }

  .sccs-locale-option:hover {
    background: #1a2638;
  }

  .sccs-auth-panel label,
  .sccs-auth-brand p,
  .sccs-auth-required,
  .sccs-auth-info,
  .sccs-auth-secondary-action,
  .sccs-auth-content p,
  .sccs-auth-footer {
    color: var(--sccs-muted) !important;
  }

  .sccs-auth-mark {
    background: none;
  }

  .sccs-auth-panel .bg-secondary-100 {
    background-color: #263348 !important;
    color: #fff;
  }

  .sccs-auth-content form button.text-primary-600 {
    background: #101722;
    color: #fff;
  }
}