/* Apple ID auth widget — scoped inside iCloud login card (from add folder captures) */

.demo-apple-auth {
  width: 100%;
  display: block;
  box-sizing: border-box;
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--theme-color-labelPrimary, #494949);
}

.demo-apple-auth-inner {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 32px 32px;
  box-sizing: border-box;
  min-height: 520px;
}

#demo-apple-auth .demo-auth-header.widget-icon-text {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  margin: 40px auto 25px;
  padding: 0 32px;
  max-width: 480px;
  box-sizing: border-box;
}

#demo-apple-auth .demo-auth-icon-mount {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto;
  flex-shrink: 0;
  z-index: 1;
}

#demo-apple-auth .demo-auth-header.widget-icon-text .icon {
  display: block !important;
  width: 160px !important;
  height: 160px !important;
  margin: 0 auto !important;
  flex-shrink: 0;
}

#demo-apple-auth .demo-auth-header.widget-icon-text .sign-in-label {
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 36px;
  color: var(--theme-color-labelPrimary, rgba(0, 0, 0, 0.88));
  margin-top: 20px;
  text-align: center;
}

#demo-home-login-route.is-passcode-step #demo-apple-auth .demo-auth-header .sign-in-label,
#demo-home-login-route.is-twofa-step #demo-apple-auth .demo-auth-header .sign-in-label,
#demo-home-login-route.is-success-step #demo-apple-auth .demo-auth-header .sign-in-label,
#demo-home-login-route.is-apps-step #demo-apple-auth .demo-auth-header .sign-in-label,
#demo-home-login-route.is-deletion-step #demo-apple-auth .demo-auth-header .sign-in-label,
#demo-home-login-route.is-deletion-restored-step #demo-apple-auth .demo-auth-header .sign-in-label,
#demo-home-login-route.is-apikeys-step #demo-apple-auth .demo-auth-header .sign-in-label {
  display: none;
}

#demo-home-login-route.is-passcode-step #demo-apple-auth .demo-auth-header,
#demo-home-login-route.is-twofa-step #demo-apple-auth .demo-auth-header,
#demo-home-login-route.is-success-step #demo-apple-auth .demo-auth-header,
#demo-home-login-route.is-apps-step #demo-apple-auth .demo-auth-header,
#demo-home-login-route.is-deletion-step #demo-apple-auth .demo-auth-header,
#demo-home-login-route.is-deletion-restored-step #demo-apple-auth .demo-auth-header,
#demo-home-login-route.is-apikeys-step #demo-apple-auth .demo-auth-header {
  margin-top: 32px;
  margin-bottom: 16px;
}

.demo-apple-auth .two-factor-title,
.demo-apple-auth .auth-title {
  text-align: center;
  font-size: 32px;
  line-height: 1.125;
  font-weight: 600;
  letter-spacing: 0.004em;
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, sans-serif;
  max-width: 380px;
  margin: 5px auto 13px;
  word-break: break-word;
  color: var(--theme-color-labelPrimary, #494949);
}

.demo-apple-auth .two-factor-desc {
  max-width: 440px;
  margin: 0 auto 7px;
  padding: 0 5px;
  text-align: center;
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--theme-color-labelPrimary, #494949);
}

.demo-apple-auth .body-reduced {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.016em;
  line-height: 1.42859;
  color: #e30000;
  text-align: center;
  margin: 8px 0 0;
}

.demo-apple-auth .body-reduced.is-hidden {
  display: none;
}

.demo-apple-auth .demo-field-error {
  min-height: 20px;
}

.demo-apple-auth .is-hidden {
  display: none !important;
}

/* Floating-label inputs */
.demo-apple-auth .text-input {
  height: 3.3em;
  position: relative;
  margin: 0;
  width: 100%;
}

.demo-apple-auth .text-input input {
  color: #494949;
  background-color: #fffc;
  margin: 0;
  text-overflow: ellipsis;
  border: 1px solid #86868b;
  border-radius: 12px;
  padding: 1.0588235294rem 0.9411764706rem 0;
  text-align: left;
  height: 100%;
  width: 100%;
  font-family: "SF Pro Text", -apple-system, sans-serif;
  font-size: 17px;
  box-sizing: border-box;
  outline: none;
}

.demo-apple-auth .text-input input:focus,
.demo-apple-auth .text-input input.has-value {
  padding-left: 0.8823529412rem;
  border-color: #0071e3;
  border-width: 2px;
}

.demo-apple-auth .text-input input.is-error:not(:focus) {
  background-color: #fff2f4;
  border-color: #e30000;
}

.demo-apple-auth .text-input input.is-error ~ label {
  color: #e30000;
}

.demo-apple-auth .text-input label {
  padding-right: 26px;
  text-overflow: ellipsis;
  color: #6e6e73;
  left: 1rem;
  transition-duration: 0.125s;
  transition-timing-function: ease-in;
  position: absolute;
  pointer-events: none;
  top: 1.05882rem;
  white-space: nowrap;
  overflow: hidden;
  max-width: calc(100% - 32px);
  font-size: 17px;
  line-height: 1.23536;
  font-weight: 400;
  letter-spacing: -0.022em;
}

.demo-apple-auth .text-input input:focus ~ label,
.demo-apple-auth .text-input input.has-value ~ label {
  font-size: 12px;
  line-height: 1.33337;
  top: 0.58824rem;
}

.demo-apple-auth .auth-form {
  display: flex;
  flex-direction: column;
  max-width: 480px;
  width: 100%;
  margin: 40px auto 0;
  min-height: 156px;
  transition: max-height 0.2s linear;
}

.demo-apple-auth .auth-form .text-input:first-child {
  z-index: 1;
}

.demo-apple-auth .auth-form .pswd-cont {
  transition: height 0.2s linear 0.2s;
  height: 0;
  overflow: hidden;
  margin-top: -1px;
}

.demo-apple-auth .auth-form.has-pswd .pswd-cont {
  height: 3.3em;
}

.demo-apple-auth .auth-form.has-pswd input[name="username"] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.demo-apple-auth .auth-form.has-pswd input[name="username"]:focus,
.demo-apple-auth .auth-form.has-pswd input[name="username"].has-value {
  border-bottom-color: #86868b;
  border-bottom-width: 1px;
}

.demo-apple-auth .auth-form input[name="password"] {
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.demo-apple-auth .auth-form input[name="password"]:focus {
  border-top: 2px solid #0071e3;
}

.demo-apple-auth .auth-form .demo-field-error {
  order: 10;
}

.demo-apple-auth a.iforgot,
.demo-apple-auth a.demo-iforgot {
  color: #06c;
  letter-spacing: -0.016em;
  cursor: pointer;
  text-decoration: none;
  margin: 12px auto 0;
  display: inline-block;
  font-size: 14px;
  line-height: 1.42859;
  font-weight: 400;
  text-align: center;
  order: 11;
}

.demo-apple-auth a.iforgot:hover,
.demo-apple-auth a.demo-iforgot:hover {
  text-decoration: underline;
}

.demo-apple-auth a.iforgot:after,
.demo-apple-auth a.demo-iforgot:after {
  content: "";
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  margin-left: 0.28em;
  vertical-align: -0.06em;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3.5 2h6.5v6.5M9.5 2.5L2.5 9.5' stroke='%230066cc' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.demo-apple-auth a.iforgot:hover {
  text-decoration: underline;
}

.demo-apple-auth .branded-btn {
  --sk-button-background: #0071e3;
  --sk-button-background-hover: #0076df;
  --sk-button-background-active: #006edb;
  --sk-button-color: #fff;
  --sk-button-border-color: transparent;
  --sk-button-border-radius: 980px;
  --sk-button-border-width: 1px;
  --sk-button-padding-horizontal: 22px;
  --sk-button-padding-vertical: 12px;
  background: var(--sk-button-background);
  border: var(--sk-button-border-width) solid var(--sk-button-border-color);
  border-radius: var(--sk-button-border-radius);
  cursor: pointer;
  color: var(--sk-button-color);
  display: inline-block;
  padding: calc(var(--sk-button-padding-vertical) - var(--sk-button-border-width))
    calc(var(--sk-button-padding-horizontal) - var(--sk-button-border-width));
  text-align: center;
  font-family: "SF Pro Text", -apple-system, sans-serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.1764805882;
  width: 100%;
  margin-top: 18px;
  box-sizing: border-box;
  order: 12;
}

.demo-apple-auth .branded-btn:hover:not(:disabled) {
  background: var(--sk-button-background-hover, #0076df);
}

.demo-apple-auth .branded-btn:active:not(:disabled) {
  background: var(--sk-button-background-active, #006edb);
  outline: none;
}

.demo-apple-auth .branded-btn:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 3px;
}

.demo-apple-auth .branded-btn:disabled,
.demo-apple-auth .branded-btn.is-loading {
  opacity: 0.55;
  cursor: not-allowed;
}

.demo-apple-auth .branded-btn.is-loading {
  color: transparent;
  position: relative;
}

.demo-apple-auth .branded-btn.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: demo-spin 0.7s linear infinite;
}

.demo-apple-auth {
  position: relative;
}

.demo-apple-auth.is-card-loading .demo-apple-auth-inner,
.demo-apple-auth.is-card-loading .demo-auth-header .sign-in-label {
  visibility: hidden;
  pointer-events: none;
}

.demo-auth-loading {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: inherit;
}

.demo-auth-loading[hidden] {
  display: none !important;
}

.demo-auth-loading-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-top-color: rgba(0, 0, 0, 0.42);
  border-radius: 50%;
  animation: demo-spin 0.75s linear infinite;
}

@media (prefers-color-scheme: dark) {
  .demo-auth-loading {
    background: rgba(28, 28, 30, 0.96);
  }

  .demo-auth-loading-spinner {
    border-color: rgba(255, 255, 255, 0.12);
    border-top-color: rgba(255, 255, 255, 0.72);
  }
}

.demo-apple-auth .demo-privacy-text {
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  color: var(--theme-color-labelSecondary, #6e6e73);
  margin: 16px 0 0;
  order: 9;
}

.demo-apple-auth .demo-privacy-text a {
  color: var(--theme-color-systemBlue, #06c);
  text-decoration: none;
}

/* Passcode keypad */
.demo-apple-auth .passcode-form {
  display: flex;
  flex-direction: column;
  max-width: 480px;
  width: 100%;
  margin: 15px auto;
}

.demo-apple-auth .passcode-display {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 20px auto;
}

.passcode-display.passcode-length-4 .passcode-bubble:nth-child(n+5) {
  display: none;
}

.demo-apple-auth .passcode-bubble {
  width: 14px;
  height: 14px;
  border: 1px solid #86868b;
  border-radius: 100%;
  padding: 8px;
  box-sizing: content-box;
  transition: background 0.15s, border-color 0.15s;
}

.demo-apple-auth .passcode-bubble.filled {
  background: #000c;
  border-color: #000c;
}

.demo-apple-auth .passcode-display.is-error .passcode-bubble {
  animation: demo-passcode-shake 0.4s ease;
}

.demo-apple-auth .passcode-entry {
  display: grid;
  width: fit-content;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  margin: 20px auto;
}

.demo-apple-auth .passcode-entry .passcode-spacer {
  width: 60px;
  height: 60px;
}

.demo-apple-auth .passcode-entry button {
  border-radius: 100%;
  width: 60px;
  height: 60px;
  background: #00000026;
  font-size: 30px;
  letter-spacing: 0;
  border: none;
  color: #494949;
  cursor: pointer;
  font-family: "SF Pro Display", -apple-system, sans-serif;
}

.demo-apple-auth .passcode-entry button:hover:not(:disabled) {
  background: #00000021;
}

.demo-apple-auth .passcode-entry button:active:not(:disabled) {
  background: rgba(0, 0, 0, 0.22);
}

/* 2FA security code */
.demo-apple-auth .two-factor-form {
  display: flex;
  flex-direction: column;
  max-width: 480px;
  width: 100%;
  margin: 5px auto 15px;
}

.demo-apple-auth .security-code {
  direction: ltr;
  display: flex;
  margin: auto;
  justify-content: center;
}

.demo-apple-auth .security-code input {
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid #86868b;
  border-radius: 12px;
  margin-bottom: 0.8235294118rem;
  text-align: center;
  color: #494949;
  appearance: none;
  font-family: "SF Pro Display", -apple-system, sans-serif;
  font-size: 24px;
  font-weight: 400;
  height: 56px;
  letter-spacing: 0.009em;
  line-height: 1.3334133333;
  width: 56px;
  outline: none;
  box-sizing: border-box;
}

.demo-apple-auth .security-code input:not(:last-child) {
  margin-right: 3px;
}

.demo-apple-auth .security-code input:not(:first-child) {
  margin-left: 3px;
}

.demo-apple-auth .security-code input:nth-child(4) {
  margin-left: 7px;
}

.demo-apple-auth .security-code input:focus {
  border-color: #0071e3;
  border-width: 2px;
}

.demo-apple-auth .security-code.is-error input:not(:focus) {
  background-color: #fff2f4;
  border-color: #e30000;
}

.demo-apple-auth .link {
  color: #06c;
  letter-spacing: -0.016em;
  cursor: pointer;
  text-decoration: none;
  margin: 12px auto 0;
  display: block;
  font-size: 14px;
  line-height: 1.42859;
  font-weight: 400;
  background: none;
  border: none;
  font-family: inherit;
}

.demo-apple-auth .link:hover {
  text-decoration: underline;
}

/* Account secured */
.demo-apple-auth .secured-container {
  text-align: center;
  padding-top: 24px;
  margin-top: 12px;
}

.demo-apple-auth .secured-container .secured-icon {
  display: block;
  margin: 0 auto 20px;
}

.demo-apple-auth .secured-container .title {
  font-size: 32px;
  line-height: 1.125;
  font-weight: 600;
  letter-spacing: 0.004em;
  font-family: "SF Pro Display", -apple-system, sans-serif;
  margin-bottom: 8px;
  color: #494949;
}

.demo-apple-auth .secured-container .description {
  font-size: 17px;
  line-height: 1.47059;
  color: #494949;
  max-width: 400px;
  margin: 0 auto;
}

#demo-apple-auth .demo-step {
  display: none;
}

#demo-apple-auth .demo-step.is-active {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  overflow: visible !important;
}

#demo-apple-auth .demo-step.is-active .auth-form,
#demo-apple-auth .demo-step.is-active .passcode-form,
#demo-apple-auth .demo-step.is-active .two-factor-form {
  display: flex !important;
  visibility: visible !important;
}

.demo-apple-auth .demo-step.is-active {
  animation: demo-step-in 0.25s ease;
}

.demo-apple-auth,
.demo-apple-auth-inner,
.demo-apple-auth .auth-form {
  visibility: visible;
}

@keyframes demo-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes demo-passcode-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

@keyframes demo-step-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.demo-apps-list {
  list-style: none;
  margin: 20px 0 24px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}

.demo-apps-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.demo-apps-item:last-child {
  border-bottom: none;
}

.demo-apps-item.is-removing {
  opacity: 0;
  transform: translateX(12px);
}

.demo-apps-empty {
  padding: 18px 16px;
  text-align: center;
  font-size: 15px;
  color: rgba(0, 0, 0, 0.56);
}

.demo-apps-icon {
  display: block;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  background: rgba(120, 120, 128, 0.08);
}

.demo-apps-meta {
  flex: 1;
  min-width: 0;
}

.demo-apps-name {
  display: block;
  font-size: 17px;
  line-height: 1.23536;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: #1d1d1f;
}

.demo-apps-duration {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.42859;
  color: rgba(0, 0, 0, 0.56);
}

.demo-list-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.item-info {
  position: relative;
  flex-shrink: 0;
}

.item-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.item-info-btn:hover {
  color: rgba(0, 0, 0, 0.72);
  background: rgba(0, 0, 0, 0.04);
}

.item-info-btn:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 2px;
}

.item-info-popover {
  position: absolute;
  z-index: 30;
  right: 0;
  top: calc(100% + 6px);
  width: min(280px, 72vw);
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  text-align: left;
}

.item-info-popover[hidden] {
  display: none !important;
}

.item-info-popover-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
}

.item-info-popover-body {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.64);
}

.demo-apps-remove {
  appearance: none;
  border: none;
  background: transparent;
  color: #0071e3;
  font-size: 15px;
  line-height: 1.33337;
  font-weight: 400;
  letter-spacing: -0.024em;
  padding: 8px 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.demo-apps-remove:hover {
  text-decoration: underline;
}

.demo-apps-remove:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 2px;
  border-radius: 4px;
}

#demo-step-apps .branded-btn {
  margin-top: 4px;
}

#demo-step-apps .two-factor-title {
  max-width: 420px;
}

.demo-deletion-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin: 0 0 20px;
  border-radius: 12px;
  background: rgba(255, 149, 0, 0.12);
  border: 1px solid rgba(255, 149, 0, 0.28);
}

.demo-deletion-alert-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.demo-deletion-alert-copy strong {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  color: #1d1d1f;
}

.demo-deletion-alert-copy span {
  font-size: 14px;
  line-height: 1.42859;
  color: rgba(0, 0, 0, 0.64);
}

.demo-deletion-icon {
  flex-shrink: 0;
}

.demo-restored-icon-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0 18px;
}

.demo-apikeys-list {
  list-style: none;
  margin: 20px 0 24px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}

.demo-apikeys-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.demo-apikeys-item:last-child {
  border-bottom: none;
}

.demo-apikeys-item.is-removing {
  opacity: 0;
  transform: translateX(12px);
}

.demo-apikeys-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(145deg, #5856d6, #007aff);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.demo-apikeys-meta {
  flex: 1;
  min-width: 0;
}

.demo-apikeys-name {
  display: block;
  font-size: 17px;
  line-height: 1.23536;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: #1d1d1f;
}

.demo-apikeys-key {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.38462;
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  color: rgba(0, 0, 0, 0.56);
}

.demo-apikeys-detail {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.38462;
  color: rgba(0, 0, 0, 0.56);
}

.demo-apikeys-remove {
  appearance: none;
  border: none;
  background: transparent;
  color: #0071e3;
  font-size: 15px;
  line-height: 1.33337;
  padding: 8px 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.demo-apikeys-remove:hover {
  text-decoration: underline;
}

.demo-apikeys-empty {
  padding: 18px 16px;
  text-align: center;
  font-size: 15px;
  color: rgba(0, 0, 0, 0.56);
}

@media (max-width: 734px) {
  #demo-apple-auth .demo-auth-header.widget-icon-text {
    padding: 0 20px;
    margin: 28px auto 20px;
  }

  #demo-apple-auth .demo-auth-header.widget-icon-text .icon {
    width: 120px !important;
    height: 120px !important;
  }

  #demo-apple-auth .demo-auth-header.widget-icon-text .sign-in-label {
    font-size: 24px;
    line-height: 28px;
  }

  .demo-apple-auth .two-factor-title,
  .demo-apple-auth .auth-title {
    font-size: 24px;
    line-height: 1.16667;
    letter-spacing: 0.009em;
  }

  .demo-apple-auth .security-code input {
    height: 42px;
    width: 42px;
    border-radius: 8px;
    font-size: 20px;
  }

  .demo-apple-auth-inner {
    padding: 0 20px 20px;
  }
}

@media (prefers-color-scheme: dark) {
  .demo-apple-auth {
    color: hsla(0, 0%, 100%, 0.98);
  }

  .demo-apple-auth .two-factor-title,
  .demo-apple-auth .auth-title,
  .demo-apple-auth .two-factor-desc,
  .demo-apple-auth .secured-container .title,
  .demo-apple-auth .secured-container .description,
  #demo-apple-auth .demo-auth-header.widget-icon-text .sign-in-label {
    color: hsla(0, 0%, 100%, 0.98);
  }

  .demo-apple-auth .demo-privacy-text {
    color: rgba(255, 255, 255, 0.56);
  }

  .demo-apple-auth .demo-privacy-text a,
  .demo-apple-auth a.iforgot,
  .demo-apple-auth a.link,
  .demo-apple-auth .link {
    color: #2997ff;
  }

  .demo-apple-auth .text-input label {
    color: rgba(255, 255, 255, 0.56);
  }

  .demo-apple-auth .text-input input {
    background-color: rgba(44, 44, 46, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.98);
  }

  .demo-apple-auth .text-input input.is-error,
  .demo-apple-auth .security-code.is-error input {
    background-color: rgba(255, 69, 58, 0.16);
  }

  .demo-apple-auth .passcode-entry button {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.92);
  }

  .demo-apple-auth .passcode-bubble {
    border-color: rgba(255, 255, 255, 0.45);
  }

  .demo-apple-auth .security-code input {
    background-color: rgba(44, 44, 46, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.98);
  }

  .demo-apple-auth .passcode-bubble.filled {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.85);
  }

  .demo-apps-list {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(44, 44, 46, 0.72);
  }

  .demo-apps-item {
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .demo-apps-name {
    color: rgba(255, 255, 255, 0.96);
  }

  .demo-apps-duration {
    color: rgba(255, 255, 255, 0.56);
  }

  .demo-apps-remove {
    color: #2997ff;
  }

  .item-info-btn {
    color: rgba(255, 255, 255, 0.45);
  }

  .item-info-btn:hover {
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.08);
  }

  .item-info-popover {
    background: rgba(44, 44, 46, 0.98);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  }

  .item-info-popover-title {
    color: rgba(255, 255, 255, 0.96);
  }

  .item-info-popover-body {
    color: rgba(255, 255, 255, 0.64);
  }

  .demo-deletion-alert {
    background: rgba(255, 159, 10, 0.16);
    border-color: rgba(255, 159, 10, 0.32);
  }

  .demo-deletion-alert-copy strong {
    color: rgba(255, 255, 255, 0.96);
  }

  .demo-deletion-alert-copy span {
    color: rgba(255, 255, 255, 0.64);
  }

  .demo-apikeys-list {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(44, 44, 46, 0.72);
  }

  .demo-apikeys-item {
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .demo-apikeys-name {
    color: rgba(255, 255, 255, 0.96);
  }

  .demo-apikeys-key,
  .demo-apikeys-detail {
    color: rgba(255, 255, 255, 0.56);
  }

  .demo-apikeys-remove {
    color: #2997ff;
  }
}
