:root {
  --so-auth-branding-bg: linear-gradient(
    135deg,
    #1a73e8 0%,
    #0d47a1 100%
  );
  --so-auth-branding-text: #ffffff;
  --so-auth-branding-text-muted: rgba(255, 255, 255, 0.7);
  --so-auth-card-radius: 16px;
  --so-auth-transition: 0.3s ease;
}

[data-theme=dark] {
  --so-auth-branding-bg: linear-gradient(
    135deg,
    var(--so-accent-primary) 0%,
    #2a5298 100%
  );
}

.so-theme-light-only {
  display: inline-block;
}

.so-theme-dark-only {
  display: none;
}

[data-theme=dark] .so-theme-light-only {
  display: none;
}

[data-theme=dark] .so-theme-dark-only {
  display: inline-block;
}

.so-auth-theme-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--so-card-bg);
  border: 1px solid var(--so-border-color);
  border-radius: 50%;
  color: var(--so-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.so-auth-theme-switch:hover {
  background: var(--so-bg-secondary);
  color: var(--so-text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.so-auth-theme-switch .material-symbols-rounded {
  font-size: 20px;
}
[data-theme=dark] .so-auth-theme-switch {
  background: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
[data-theme=dark] .so-auth-theme-switch:hover {
  background: #3d4a5c;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.so-auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--so-page-bg);
}

.so-auth-container {
  display: flex;
  width: 100%;
  max-width: 1000px;
  min-height: 600px;
  background: var(--so-card-bg);
  border-radius: var(--so-auth-card-radius);
  box-shadow: var(--so-shadow-lg);
  border: 1px solid var(--so-card-border);
  overflow: hidden;
}
.so-auth-container.centered {
  max-width: 480px;
  min-height: auto;
}
.so-auth-container.centered .so-auth-card {
  padding: 40px;
}

.so-auth-branding {
  flex: 0 0 45%;
  background: var(--so-auth-branding-bg);
  color: var(--so-auth-branding-text);
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.so-auth-branding::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.so-auth-branding::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.so-customer-logo {
  position: relative;
  z-index: 1;
  text-align: center;
}
.so-customer-logo img {
  max-width: 160px;
  max-height: 80px;
  -o-object-fit: contain;
     object-fit: contain;
}

.so-customer-logo-placeholder {
  width: 80px;
  height: 80px;
  margin: 0 auto 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
}

.so-customer-name {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 8px 0 0;
  text-align: center;
}

.so-auth-features {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.so-auth-features-header {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--so-auth-branding-text-muted);
  margin-bottom: 20px;
}

.so-feature-carousel {
  position: relative;
  min-height: 120px;
}

.so-feature-slides {
  position: relative;
  overflow: hidden;
}

.so-feature-slide {
  display: none;
  animation: so-auth-fade-in 0.5s ease;
}
.so-feature-slide.active {
  display: block;
}

@keyframes so-auth-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.so-feature-slide-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.so-feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.so-feature-icon .material-symbols-rounded {
  font-size: 24px;
  color: #ffffff;
}

.so-feature-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.so-feature-description {
  font-size: 0.875rem;
  color: var(--so-auth-branding-text-muted);
  line-height: 1.5;
}

.so-feature-dots {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  justify-content: center;
}

.so-feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.so-feature-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}
.so-feature-dot.active {
  background: #ffffff;
  transform: scale(1.2);
}

.so-sixorbit-branding {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 32px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.so-sixorbit-branding-text {
  font-size: 0.6875rem;
  color: var(--so-auth-branding-text-muted);
  margin-bottom: 4px;
}

a.so-sixorbit-branding-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--so-auth-branding-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s ease, color 0.2s ease;
}
a.so-sixorbit-branding-link:hover {
  opacity: 0.85;
  color: var(--so-auth-branding-text);
}
a.so-sixorbit-branding-link .material-symbols-rounded {
  font-size: 16px;
}

.so-sixorbit-logo {
  flex-shrink: 0;
}

.so-auth-card {
  flex: 1;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--so-card-bg);
}

.so-auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.so-auth-title {
  font-size: 28px;
  font-weight: 500;
  color: var(--so-text-heading);
  margin: 0 0 8px;
}

.so-auth-subtitle {
  font-size: 0.875rem;
  color: var(--so-text-secondary);
  margin: 0;
}

.so-auth-body {
  max-width: 360px;
  margin: 0 auto;
  width: 100%;
}
.so-auth-body .so-form-group {
  margin-bottom: 20px;
}
.so-auth-body .so-form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--so-text-primary);
  margin-bottom: 8px;
  display: block;
}

.so-auth-type-toggle {
  display: flex;
  margin-bottom: 24px;
  background: var(--so-card-hover-bg);
  border-radius: 6px;
  padding: 4px;
}

.so-auth-type-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--so-text-secondary);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.so-auth-type-btn .material-symbols-rounded {
  font-size: 20px;
}
.so-auth-type-btn:hover {
  color: var(--so-text-primary);
}
.so-auth-type-btn.active {
  background: var(--so-card-bg);
  color: var(--so-accent-primary);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}
[data-theme=dark] .so-auth-type-btn.active {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.so-auth-input-wrapper.so-input-wrapper:has(.so-form-control:not(:-moz-placeholder)) .so-input-icon {
  color: var(--so-accent-primary);
}

.so-auth-input-wrapper.so-input-wrapper:focus-within .so-input-icon, .so-auth-input-wrapper.so-input-wrapper:has(.so-form-control:not(:placeholder-shown)) .so-input-icon {
  color: var(--so-accent-primary);
}

.so-auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.so-auth-forgot-link {
  font-size: 0.875rem;
  color: var(--so-accent-primary);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.15s ease;
}
.so-auth-forgot-link:hover {
  opacity: 0.8;
}

.so-otp-container {
  text-align: center;
  margin-bottom: 24px;
}

.so-otp-inputs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}

.so-otp-input {
  width: 52px;
  height: 60px;
  text-align: center;
  font-size: 1.375rem;
  font-weight: 500;
  font-family: "Roboto Mono", monospace;
  color: var(--so-form-text);
  background: var(--so-form-bg);
  border: 2px solid var(--so-form-border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.so-otp-input:focus {
  border-color: var(--so-form-border-focus);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}
[data-theme=dark] .so-otp-input:focus {
  box-shadow: 0 0 0 3px rgba(115, 103, 240, 0.15);
}

.so-otp-input.filled {
  border-color: var(--so-accent-success);
}
.so-otp-input.error {
  border-color: var(--so-accent-danger);
}

.so-otp-group-sm .so-otp-inputs {
  gap: 8px;
}
.so-otp-group-sm .so-otp-input {
  width: 40px;
  height: 48px;
  font-size: 1.125rem;
  border-radius: 6px;
}

.so-otp-group-lg .so-otp-inputs {
  gap: 16px;
}
.so-otp-group-lg .so-otp-input {
  width: 64px;
  height: 72px;
  font-size: 1.5rem;
  border-radius: 10px;
}

.so-auth-resend {
  font-size: 0.875rem;
  color: var(--so-text-secondary);
}

.so-auth-resend-btn {
  color: var(--so-accent-primary);
  background: none;
  border: none;
  font-size: 0.875rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.15s ease;
}
.so-auth-resend-btn:disabled {
  color: var(--so-text-muted);
  cursor: not-allowed;
}
.so-auth-resend-btn:not(:disabled):hover {
  opacity: 0.8;
}

.so-password-requirements {
  margin: 16px 0 24px;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
}
.so-password-requirements li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: var(--so-text-muted);
  transition: color 0.2s ease;
}
.so-password-requirements li .material-symbols-rounded {
  font-size: 18px;
}
.so-password-requirements li.valid {
  color: var(--so-accent-success);
}
.so-password-requirements li.valid .material-symbols-rounded {
  font-variation-settings: "FILL" 1;
}

.so-auth-success {
  text-align: center;
  padding: 32px 0;
}

.so-auth-success-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  border-radius: 9999px;
  background: rgba(52, 168, 83, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.so-auth-success-icon .material-symbols-rounded {
  font-size: 48px;
  color: var(--so-accent-success);
}
[data-theme=dark] .so-auth-success-icon {
  background: rgba(40, 199, 111, 0.15);
}

.so-auth-success-title {
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--so-text-heading);
  margin-bottom: 8px;
}

.so-auth-success-message {
  font-size: 0.875rem;
  color: var(--so-text-secondary);
  margin-bottom: 32px;
}

.so-auth-steps {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.so-auth-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: var(--so-border-color);
  transition: background 0.2s ease, transform 0.2s ease;
}
.so-auth-step-dot.active {
  background: var(--so-accent-primary);
  transform: scale(1.3);
}
.so-auth-step-dot.completed {
  background: var(--so-accent-success);
}

.so-auth-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  color: var(--so-text-secondary);
  text-decoration: none;
  margin-top: 24px;
  transition: color 0.15s ease;
}
.so-auth-back:hover {
  color: var(--so-accent-primary);
}
.so-auth-back .material-symbols-rounded {
  font-size: 18px;
}

.so-auth-step {
  display: none;
}
.so-auth-step.active {
  display: block;
  animation: so-auth-fade-in 0.3s ease;
}

.so-btn.so-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.so-btn.so-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-top: -10px;
  margin-left: -10px;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 9999px;
  animation: so-btn-spin 0.8s linear infinite;
}

.so-btn-secondary.so-loading::after {
  border-color: var(--so-text-secondary);
  border-top-color: transparent;
}

@keyframes so-btn-spin {
  to {
    transform: rotate(360deg);
  }
}
.so-auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--so-border-color);
}

.so-auth-footer-text {
  font-size: 0.875rem;
  color: var(--so-text-secondary);
}

.so-auth-footer-link {
  color: var(--so-accent-primary);
  text-decoration: none;
  font-weight: 500;
}
.so-auth-footer-link:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .so-auth-page {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 20px 76px;
    background: radial-gradient(620px 480px at 14% 6%, rgba(96, 150, 255, 0.32) 0%, rgba(96, 150, 255, 0) 60%), radial-gradient(560px 520px at 94% 14%, rgba(139, 110, 246, 0.26) 0%, rgba(139, 110, 246, 0) 62%), radial-gradient(680px 620px at 82% 104%, rgba(86, 165, 255, 0.24) 0%, rgba(86, 165, 255, 0) 60%), linear-gradient(180deg, #f1f4fb 0%, #e8ecf6 100%);
    position: relative;
    overflow: hidden;
  }
  .so-auth-page::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    top: 16%;
    left: -90px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(120, 110, 245, 0.22) 0%, transparent 70%);
  }
  [data-theme=dark] .so-auth-page {
    background: radial-gradient(620px 480px at 14% 6%, rgba(70, 110, 220, 0.4) 0%, rgba(70, 110, 220, 0) 60%), radial-gradient(560px 520px at 94% 14%, rgba(108, 84, 200, 0.34) 0%, rgba(108, 84, 200, 0) 62%), linear-gradient(180deg, #11151f 0%, #0c0f17 100%);
  }
  .so-auth-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 400px;
    min-height: auto;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    position: relative;
    z-index: 1;
  }
  .so-auth-branding {
    flex: none;
    padding: 0;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: transparent;
    position: static;
    overflow: visible;
  }
  .so-auth-branding::before, .so-auth-branding::after {
    display: none;
  }
  .so-customer-logo {
    margin: 0;
    flex-shrink: 0;
  }
  .so-customer-logo img {
    max-width: 104px;
    max-height: 60px;
    padding: 14px 16px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 26px rgba(28, 48, 96, 0.16);
  }
  .so-customer-logo-placeholder {
    width: 78px;
    height: 78px;
    margin: 0 auto;
    background: var(--so-auth-branding-bg);
    color: #ffffff;
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(26, 79, 176, 0.4);
  }
  .so-customer-name {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: var(--so-text-heading);
    text-shadow: none;
    margin: 0;
    max-width: 280px;
    text-align: center;
    line-height: 1.35;
  }
  .so-auth-features {
    display: none;
  }
  .so-auth-card {
    width: 100%;
    flex: none;
    padding: 36px 24px 32px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(22px) saturate(165%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 22px 48px -16px rgba(24, 44, 96, 0.32);
  }
  [data-theme=dark] .so-auth-card {
    background: rgba(28, 33, 46, 0.66);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 48px -16px rgba(0, 0, 0, 0.6);
  }
  .so-auth-header {
    margin-bottom: 28px;
  }
  .so-auth-title {
    font-size: 1.5rem;
  }
  .so-sixorbit-branding {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    height: 56px;
    padding: 0 16px;
    border-top: none;
    text-align: center;
    z-index: 2;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: none;
  }
  .so-sixorbit-branding p.so-sixorbit-branding-text {
    margin: 0;
    line-height: 1;
    font-size: 0.7rem;
    color: var(--so-text-secondary);
  }
  a.so-sixorbit-branding-link {
    font-size: 0.6875rem;
    line-height: 1;
    color: var(--so-text-primary);
    align-items: center;
  }
  a.so-sixorbit-branding-link:hover {
    color: var(--so-accent-primary);
  }
  a.so-sixorbit-branding-link .material-symbols-rounded {
    font-size: 12px;
  }
  .so-sixorbit-logo {
    width: 16px;
    height: 16px;
    filter: brightness(0) opacity(0.5);
  }
  [data-theme=dark] .so-sixorbit-logo {
    filter: none;
  }
  .so-auth-theme-switch {
    top: 16px;
    right: 16px;
  }
  .so-otp-inputs {
    gap: 8px;
  }
  .so-otp-input {
    width: 44px;
    height: 52px;
    font-size: 1.125rem;
  }
}
.lock-screen-time {
  font-size: 48px;
  font-weight: 300;
  color: var(--so-text-primary);
  margin-bottom: 4px;
  text-align: center;
}

.lock-screen-date {
  font-size: 14px;
  color: var(--so-text-secondary);
  margin-bottom: 32px;
  text-align: center;
}

.lock-screen-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.lock-screen-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 12px;
  background: var(--so-accent-primary);
}

.lock-screen-name {
  font-size: 18px;
  font-weight: 500;
  color: var(--so-text-primary);
}

.lock-screen-form {
  width: 100%;
}

.lock-screen-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.lock-screen-input-group .so-form-control {
  flex: 1;
}

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

.lock-screen-form .so-form-error {
  text-align: center;
  margin-top: 12px;
}

.lock-screen-switch {
  display: block;
  text-align: center;
  font-size: 14px;
  color: var(--so-accent-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.lock-screen-switch:hover {
  color: var(--so-accent-primary-hover);
  text-decoration: underline;
}
