:root {
  --identity-primary: #1a365d;
  --identity-primary-dark: #1a2f4e;
  --identity-primary-light: #2c5282;
  --identity-accent: #3182ce;
  --identity-accent-light: #4299e1;
  --identity-complementary: #8b18a2;
  --identity-success: #38a169;
  --identity-warning: #ffa726;
  --identity-error: #e53e3e;
  --identity-info: #2ea3f2;
}

:root,
[data-theme=light] {
  --identity-bg-start: #f8f9fa;
  --identity-bg-end: #e9ecef;
  --identity-bg-pattern-opacity: 0.03;
  --identity-card-bg: #ffffff;
  --identity-card-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.04);
  --identity-card-border: 1px solid rgba(0, 0, 0, 0.05);
  --identity-card-radius: 16px;
  --identity-text-primary: #222222;
  --identity-text-secondary: #333333;
  --identity-text-muted: #666666;
  --identity-text-on-brand: #ffffff;
  --identity-input-bg: #ffffff;
  --identity-input-border: #D0D0D2;
  --identity-input-border-focus: var(--identity-primary);
  --identity-input-placeholder: #666666;
  --identity-input-shadow-focus: 0 0 0 3px rgba(#1a365d, 0.15);
  --identity-brand-bg-start: #222222;
  --identity-brand-bg-end: #3c3c3c;
  --identity-brand-text: #ffffff;
  --identity-brand-pattern-opacity: 0.1;
  --identity-link: #007bb6;
  --identity-link-hover: #1a365d;
  --identity-separator: #D0D0D2;
  --identity-status-success-bg: rgba(56, 161, 105, 0.05);
  --identity-status-error-bg: rgba(229, 62, 62, 0.05);
  --identity-status-warning-bg: rgba(255, 167, 38, 0.05);
  --identity-status-info-bg: rgba(46, 163, 242, 0.05);
}

[data-theme=dark] {
  --identity-bg-start: #1a1a2e;
  --identity-bg-end: #16213e;
  --identity-bg-pattern-opacity: 0.05;
  --identity-card-bg: rgba(30, 30, 50, 0.95);
  --identity-card-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 8px 16px rgba(0, 0, 0, 0.2);
  --identity-card-border: 1px solid rgba(255, 255, 255, 0.1);
  --identity-card-radius: 16px;
  --identity-text-primary: #f8f9fa;
  --identity-text-secondary: #adb5bd;
  --identity-text-muted: #6c757d;
  --identity-text-on-brand: #ffffff;
  --identity-input-bg: rgba(255, 255, 255, 0.08);
  --identity-input-border: rgba(255, 255, 255, 0.15);
  --identity-input-border-focus: var(--identity-primary-light);
  --identity-input-placeholder: rgba(255, 255, 255, 0.4);
  --identity-input-shadow-focus: 0 0 0 3px rgba(#2c5282, 0.25);
  --identity-brand-bg-start: #1a365d;
  --identity-brand-bg-end: #1a2f4e;
  --identity-brand-text: #ffffff;
  --identity-brand-pattern-opacity: 0.15;
  --identity-link: #2c5282;
  --identity-link-hover: #4299e1;
  --identity-separator: rgba(255, 255, 255, 0.1);
  --identity-status-success-bg: rgba(56, 161, 105, 0.15);
  --identity-status-error-bg: rgba(229, 62, 62, 0.15);
  --identity-status-warning-bg: rgba(255, 167, 38, 0.15);
  --identity-status-info-bg: rgba(46, 163, 242, 0.15);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --identity-bg-start: #1a1a2e;
    --identity-bg-end: #16213e;
    --identity-bg-pattern-opacity: 0.05;
    --identity-card-bg: rgba(30, 30, 50, 0.95);
    --identity-card-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 8px 16px rgba(0, 0, 0, 0.2);
    --identity-card-border: 1px solid rgba(255, 255, 255, 0.1);
    --identity-text-primary: #f8f9fa;
    --identity-text-secondary: #adb5bd;
    --identity-text-muted: #6c757d;
    --identity-input-bg: rgba(255, 255, 255, 0.08);
    --identity-input-border: rgba(255, 255, 255, 0.15);
    --identity-input-border-focus: var(--identity-primary-light);
    --identity-input-placeholder: rgba(255, 255, 255, 0.4);
    --identity-input-shadow-focus: 0 0 0 3px rgba(#2c5282, 0.25);
    --identity-brand-bg-start: #1a365d;
    --identity-brand-bg-end: #1a2f4e;
    --identity-brand-pattern-opacity: 0.15;
    --identity-link: #2c5282;
    --identity-link-hover: #4299e1;
    --identity-separator: rgba(255, 255, 255, 0.1);
    --identity-status-success-bg: rgba(56, 161, 105, 0.15);
    --identity-status-error-bg: rgba(229, 62, 62, 0.15);
    --identity-status-warning-bg: rgba(255, 167, 38, 0.15);
    --identity-status-info-bg: rgba(46, 163, 242, 0.15);
  }
}
:root {
  --identity-primary: #1a365d;
  --identity-primary-dark: #1a2f4e;
  --identity-primary-light: #2c5282;
  --identity-accent: #3182ce;
  --identity-accent-light: #4299e1;
  --identity-complementary: #8b18a2;
  --identity-success: #38a169;
  --identity-warning: #ffa726;
  --identity-error: #e53e3e;
  --identity-info: #2ea3f2;
}

:root,
[data-theme=light] {
  --identity-bg-start: #f8f9fa;
  --identity-bg-end: #e9ecef;
  --identity-bg-pattern-opacity: 0.03;
  --identity-card-bg: #ffffff;
  --identity-card-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.04);
  --identity-card-border: 1px solid rgba(0, 0, 0, 0.05);
  --identity-card-radius: 16px;
  --identity-text-primary: #222222;
  --identity-text-secondary: #333333;
  --identity-text-muted: #666666;
  --identity-text-on-brand: #ffffff;
  --identity-input-bg: #ffffff;
  --identity-input-border: #D0D0D2;
  --identity-input-border-focus: var(--identity-primary);
  --identity-input-placeholder: #666666;
  --identity-input-shadow-focus: 0 0 0 3px rgba(#1a365d, 0.15);
  --identity-brand-bg-start: #222222;
  --identity-brand-bg-end: #3c3c3c;
  --identity-brand-text: #ffffff;
  --identity-brand-pattern-opacity: 0.1;
  --identity-link: #007bb6;
  --identity-link-hover: #1a365d;
  --identity-separator: #D0D0D2;
  --identity-status-success-bg: rgba(56, 161, 105, 0.05);
  --identity-status-error-bg: rgba(229, 62, 62, 0.05);
  --identity-status-warning-bg: rgba(255, 167, 38, 0.05);
  --identity-status-info-bg: rgba(46, 163, 242, 0.05);
}

[data-theme=dark] {
  --identity-bg-start: #1a1a2e;
  --identity-bg-end: #16213e;
  --identity-bg-pattern-opacity: 0.05;
  --identity-card-bg: rgba(30, 30, 50, 0.95);
  --identity-card-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 8px 16px rgba(0, 0, 0, 0.2);
  --identity-card-border: 1px solid rgba(255, 255, 255, 0.1);
  --identity-card-radius: 16px;
  --identity-text-primary: #f8f9fa;
  --identity-text-secondary: #adb5bd;
  --identity-text-muted: #6c757d;
  --identity-text-on-brand: #ffffff;
  --identity-input-bg: rgba(255, 255, 255, 0.08);
  --identity-input-border: rgba(255, 255, 255, 0.15);
  --identity-input-border-focus: var(--identity-primary-light);
  --identity-input-placeholder: rgba(255, 255, 255, 0.4);
  --identity-input-shadow-focus: 0 0 0 3px rgba(#2c5282, 0.25);
  --identity-brand-bg-start: #1a365d;
  --identity-brand-bg-end: #1a2f4e;
  --identity-brand-text: #ffffff;
  --identity-brand-pattern-opacity: 0.15;
  --identity-link: #2c5282;
  --identity-link-hover: #4299e1;
  --identity-separator: rgba(255, 255, 255, 0.1);
  --identity-status-success-bg: rgba(56, 161, 105, 0.15);
  --identity-status-error-bg: rgba(229, 62, 62, 0.15);
  --identity-status-warning-bg: rgba(255, 167, 38, 0.15);
  --identity-status-info-bg: rgba(46, 163, 242, 0.15);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --identity-bg-start: #1a1a2e;
    --identity-bg-end: #16213e;
    --identity-bg-pattern-opacity: 0.05;
    --identity-card-bg: rgba(30, 30, 50, 0.95);
    --identity-card-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 8px 16px rgba(0, 0, 0, 0.2);
    --identity-card-border: 1px solid rgba(255, 255, 255, 0.1);
    --identity-text-primary: #f8f9fa;
    --identity-text-secondary: #adb5bd;
    --identity-text-muted: #6c757d;
    --identity-input-bg: rgba(255, 255, 255, 0.08);
    --identity-input-border: rgba(255, 255, 255, 0.15);
    --identity-input-border-focus: var(--identity-primary-light);
    --identity-input-placeholder: rgba(255, 255, 255, 0.4);
    --identity-input-shadow-focus: 0 0 0 3px rgba(#2c5282, 0.25);
    --identity-brand-bg-start: #1a365d;
    --identity-brand-bg-end: #1a2f4e;
    --identity-brand-pattern-opacity: 0.15;
    --identity-link: #2c5282;
    --identity-link-hover: #4299e1;
    --identity-separator: rgba(255, 255, 255, 0.1);
    --identity-status-success-bg: rgba(56, 161, 105, 0.15);
    --identity-status-error-bg: rgba(229, 62, 62, 0.15);
    --identity-status-warning-bg: rgba(255, 167, 38, 0.15);
    --identity-status-info-bg: rgba(46, 163, 242, 0.15);
  }
}
.identity-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  background: linear-gradient(135deg, var(--identity-bg-start) 0%, var(--identity-bg-end) 100%);
  position: relative;
}
.identity-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../../images/pattern-dots.svg");
  background-size: 30px;
  opacity: var(--identity-bg-pattern-opacity);
  pointer-events: none;
  z-index: -1;
}

.identity-container {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.identity-theme-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: none;
  background: var(--identity-card-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition-property: background, box-shadow, transform;
  transition-duration: 300ms;
  transition-timing-function: ease;
}
.identity-theme-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.identity-theme-toggle .theme-icon {
  font-size: 1.25rem;
  color: var(--identity-text-primary);
  transition-property: opacity, transform;
  transition-duration: 300ms;
  transition-timing-function: ease;
}
.identity-theme-toggle .theme-icon--light {
  display: block;
}
.identity-theme-toggle .theme-icon--dark {
  display: none;
}
[data-theme=dark] .identity-theme-toggle .theme-icon--light {
  display: none;
}
[data-theme=dark] .identity-theme-toggle .theme-icon--dark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .identity-theme-toggle .theme-icon--light {
    display: none;
  }
  :root:not([data-theme=light]) .identity-theme-toggle .theme-icon--dark {
    display: block;
  }
}
.identity-card {
  background: var(--identity-card-bg);
  border-radius: var(--identity-card-radius);
  box-shadow: var(--identity-card-shadow);
  border: var(--identity-card-border);
  overflow: hidden;
  position: relative;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition-property: opacity, transform;
  transition-duration: 300ms;
  transition-timing-function: ease;
}
.identity-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--identity-complementary) 0%, var(--identity-primary) 50%, var(--identity-accent) 100%);
}
.identity-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.identity-card--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 900px;
}
@media (max-width: 768px) {
  .identity-card--split {
    grid-template-columns: 1fr;
  }
}

.identity-card--simple {
  max-width: 480px;
  padding: 0;
}

.identity-card--status {
  max-width: 500px;
  text-align: center;
  padding: 3rem;
}
.identity-card--status.identity-card--success .identity-status-icon {
  background: var(--identity-status-success-bg);
  color: var(--identity-success);
}
.identity-card--status.identity-card--error .identity-status-icon {
  background: var(--identity-status-error-bg);
  color: var(--identity-error);
}
.identity-card--status.identity-card--warning .identity-status-icon {
  background: var(--identity-status-warning-bg);
  color: var(--identity-warning);
}
.identity-card--status.identity-card--info .identity-status-icon {
  background: var(--identity-status-info-bg);
  color: var(--identity-info);
}

.identity-brand {
  background: linear-gradient(135deg, var(--identity-brand-bg-start) 0%, var(--identity-brand-bg-end) 100%);
  color: var(--identity-brand-text);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 400px;
}
.identity-brand::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../../images/impact-pattern.svg");
  background-size: cover;
  opacity: var(--identity-brand-pattern-opacity);
  z-index: 0;
}
.identity-brand > * {
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .identity-brand {
    padding: 2rem 1.5rem;
    min-height: auto;
  }
}

.identity-brand__logo {
  width: 100px;
  height: 100px;
  border-radius: 9999px;
  background: var(--identity-card-bg);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  margin-bottom: 1.5rem;
}
.identity-brand__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
@media (max-width: 768px) {
  .identity-brand__logo {
    width: 80px;
    height: 80px;
  }
}

.identity-brand__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.identity-brand__tagline {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0;
  max-width: 280px;
}

.identity-brand__features {
  margin-top: 2rem;
  text-align: left;
  width: 100%;
  max-width: 280px;
}
.identity-brand__features .feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  opacity: 0.9;
}
.identity-brand__features .feature-item i {
  margin-top: 2px;
  color: var(--identity-accent);
}

.identity-form-section {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 768px) {
  .identity-form-section {
    padding: 2rem 1.5rem;
  }
}

.identity-form-header {
  margin-bottom: 2rem;
  text-align: center;
}
.identity-form-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--identity-text-primary);
  margin: 0 0 0.5rem;
}
.identity-form-header p {
  font-size: 0.875rem;
  color: var(--identity-text-secondary);
  margin: 0;
}

.identity-form {
  width: 100%;
}

.identity-form__group {
  margin-bottom: 1.5rem;
}

.identity-form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--identity-text-primary);
  margin-bottom: 0.5rem;
}

.identity-form__input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.identity-form__input-icon {
  position: absolute;
  left: 1rem;
  color: var(--identity-text-muted);
  z-index: 2;
  pointer-events: none;
}

.identity-form__input {
  width: 100%;
  height: 48px;
  padding: 1rem 1rem 1rem 3rem;
  font-size: 1rem;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: var(--identity-text-primary);
  background: var(--identity-input-bg);
  border: 1px solid var(--identity-input-border);
  border-radius: 8px;
  transition-property: border-color, box-shadow, background;
  transition-duration: 300ms;
  transition-timing-function: ease;
}
.identity-form__input::placeholder {
  color: var(--identity-input-placeholder);
}
.identity-form__input:focus {
  outline: none;
  box-shadow: var(--identity-input-shadow-focus);
  border-color: var(--identity-input-border-focus);
}
.identity-form__input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.identity-form__input.identity-form__input--no-icon {
  padding-left: 1rem;
}

.identity-form__input-toggle {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: var(--identity-text-muted);
  cursor: pointer;
  padding: 0.25rem;
  transition-property: color;
  transition-duration: 300ms;
  transition-timing-function: ease;
}
.identity-form__input-toggle:hover {
  color: var(--identity-primary);
}
.identity-form__input-toggle:focus {
  outline: none;
}

.identity-form__error {
  display: block;
  font-size: 0.75rem;
  color: var(--identity-error);
  margin-top: 0.25rem;
}

.identity-form__hint {
  display: block;
  font-size: 0.75rem;
  color: var(--identity-text-muted);
  margin-top: 0.25rem;
}

.identity-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  gap: 0.5rem;
}
.identity-checkbox input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--identity-primary);
  cursor: pointer;
}
.identity-checkbox .identity-checkbox__label {
  font-size: 0.875rem;
  color: var(--identity-text-secondary);
}

.identity-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.identity-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 2rem;
  font-size: 1rem;
  font-weight: 500;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition-property: background, transform, box-shadow;
  transition-duration: 300ms;
  transition-timing-function: ease;
}
.identity-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}
.identity-btn i {
  font-size: 1.25rem;
}

.identity-btn--primary {
  width: 100%;
  background: var(--identity-primary);
  color: var(--identity-text-on-brand);
}
.identity-btn--primary:hover:not(:disabled) {
  background: var(--identity-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.identity-btn--primary:active:not(:disabled) {
  transform: translateY(0);
}

.identity-btn--secondary {
  background: transparent;
  color: var(--identity-text-primary);
  border: 1px solid var(--identity-separator);
}
.identity-btn--secondary:hover:not(:disabled) {
  background: var(--identity-input-bg);
  border-color: var(--identity-primary);
}

.identity-btn--external {
  width: 100%;
  background: var(--identity-card-bg);
  color: var(--identity-text-primary);
  border: 1px solid var(--identity-separator);
}
.identity-btn--external:hover:not(:disabled) {
  background: var(--identity-input-bg);
  border-color: var(--identity-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.identity-btn--external i {
  font-size: 1.25rem;
}
.identity-btn--external.identity-btn--google:hover {
  border-color: #ea4335;
}
.identity-btn--external.identity-btn--microsoft:hover {
  border-color: #00a4ef;
}
.identity-btn--external.identity-btn--facebook:hover {
  border-color: #3b5998;
}

.identity-btn--link {
  background: none;
  border: none;
  color: var(--identity-link);
  height: auto;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 400;
}
.identity-btn--link:hover:not(:disabled) {
  color: var(--identity-link-hover);
  text-decoration: underline;
}

.identity-separator {
  display: flex;
  align-items: center;
  margin: 2rem 0;
  color: var(--identity-text-muted);
  font-size: 0.875rem;
}
.identity-separator::before, .identity-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--identity-separator);
}
.identity-separator span {
  padding: 0 1rem;
}

.identity-providers {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.identity-links {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--identity-text-secondary);
}
.identity-links a {
  color: var(--identity-link);
  text-decoration: none;
  font-weight: 500;
  margin-left: 0.25rem;
}
.identity-links a:hover {
  color: var(--identity-link-hover);
  text-decoration: underline;
}

.identity-status-icon {
  width: 80px;
  height: 80px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2rem;
}

.identity-status-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--identity-text-primary);
  margin: 0 0 1rem;
}

.identity-status-message {
  font-size: 1rem;
  color: var(--identity-text-secondary);
  margin: 0 0 2rem;
  line-height: 1.6;
}

.identity-status-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.identity-2fa-code {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.identity-2fa-code .identity-2fa-code__digit {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: monospace;
  background: var(--identity-input-bg);
  border: 2px solid var(--identity-input-border);
  border-radius: 8px;
  color: var(--identity-text-primary);
  transition-property: border-color, box-shadow;
  transition-duration: 300ms;
  transition-timing-function: ease;
}
.identity-2fa-code .identity-2fa-code__digit:focus {
  outline: none;
  box-shadow: var(--identity-input-shadow-focus);
  border-color: var(--identity-input-border-focus);
  border-width: 2px;
}
.identity-2fa-code .identity-2fa-code__digit::placeholder {
  color: var(--identity-input-placeholder);
}

.identity-2fa-code__hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.identity-2fa-provider-badge {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.identity-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}
.identity-badge i {
  font-size: 0.75rem;
}
.identity-badge--info {
  background: rgba(var(--identity-info-rgb, 52, 152, 219), 0.15);
  color: var(--identity-info);
}
.identity-badge--success {
  background: rgba(var(--identity-success-rgb, 46, 204, 113), 0.15);
  color: var(--identity-success);
}
.identity-badge--warning {
  background: rgba(var(--identity-warning-rgb, 243, 156, 18), 0.15);
  color: var(--identity-warning);
}
.identity-badge--error {
  background: rgba(var(--identity-error-rgb, 231, 76, 60), 0.15);
  color: var(--identity-error);
}

.identity-link-btn {
  background: none;
  border: none;
  color: var(--identity-link);
  font-size: 0.875rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition-property: color;
  transition-duration: 300ms;
  transition-timing-function: ease;
}
.identity-link-btn:hover {
  color: var(--identity-link-hover);
  text-decoration: underline;
}
.identity-link-btn:disabled {
  color: var(--identity-text-muted);
  cursor: not-allowed;
}

.identity-resend-feedback {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
  font-size: 0.875rem;
}
.identity-resend-feedback--success {
  color: var(--identity-success);
}
.identity-resend-feedback--error {
  color: var(--identity-error);
}

.identity-duo-container {
  padding: 1.5rem 0;
}

.identity-duo-waiting {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.identity-duo-animation {
  position: relative;
  padding: 2rem;
}

.identity-duo-phone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--identity-primary) 0%, var(--identity-primary-dark) 100%);
  border-radius: 12px;
  color: white;
  font-size: 36px;
  box-shadow: 0 4px 20px rgba(var(--identity-primary-rgb, 46, 204, 113), 0.4);
}
.identity-duo-phone i {
  animation: identity-bounce 2s ease-in-out infinite;
}

.identity-duo-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: var(--identity-primary);
  animation: identity-duo-pulse 2s ease-out infinite;
  opacity: 0;
  pointer-events: none;
}

@keyframes identity-duo-pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0;
  }
}
.identity-duo-status {
  text-align: center;
}

.identity-duo-status__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--identity-status-info-bg);
  color: var(--identity-info);
  border-radius: 9999px;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.identity-duo-status__text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--identity-text-primary);
  margin-bottom: 0.25rem;
}

.identity-duo-status__hint {
  font-size: 0.875rem;
  color: var(--identity-text-secondary);
  max-width: 300px;
  line-height: 1.5;
}

.identity-duo-timer {
  width: 100%;
  max-width: 300px;
}

.identity-duo-timer__bar {
  height: 4px;
  background: var(--identity-separator);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.identity-duo-timer__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--identity-primary) 0%, var(--identity-warning) 100%);
  border-radius: 9999px;
  width: 0%;
  transition: width 1s linear;
}

.identity-duo-timer__text {
  font-size: 0.75rem;
  color: var(--identity-text-muted);
  text-align: center;
}
.identity-duo-timer__text span {
  font-weight: 600;
  color: var(--identity-text-secondary);
}

.identity-duo-actions {
  display: flex;
  gap: 1rem;
}

.identity-duo-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  animation: identity-scaleIn 0.3s ease forwards;
}

.identity-duo-result__icon {
  font-size: 64px;
  margin-bottom: 1rem;
}

.identity-duo-result__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.identity-duo-result__text {
  font-size: 0.875rem;
  color: var(--identity-text-secondary);
  margin-bottom: 1.5rem;
}

.identity-duo-result--success .identity-duo-result__icon {
  color: var(--identity-success);
}
.identity-duo-result--success .identity-duo-result__title {
  color: var(--identity-success);
}

.identity-duo-result--denied .identity-duo-result__icon {
  color: var(--identity-error);
}
.identity-duo-result--denied .identity-duo-result__title {
  color: var(--identity-error);
}

.identity-duo-result--timeout .identity-duo-result__icon {
  color: var(--identity-warning);
}
.identity-duo-result--timeout .identity-duo-result__title {
  color: var(--identity-warning);
}

.identity-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  background: var(--identity-input-bg);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}
.identity-qr-container .identity-qr-code {
  width: 180px;
  height: 180px;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.identity-qr-container .identity-qr-code img {
  width: 100%;
  height: 100%;
}
.identity-qr-container .identity-qr-manual {
  text-align: center;
  width: 100%;
}
.identity-qr-container .identity-qr-manual .identity-qr-manual__label {
  font-size: 0.75rem;
  color: var(--identity-text-muted);
  margin-bottom: 0.25rem;
}
.identity-qr-container .identity-qr-manual .identity-qr-manual__code {
  font-family: monospace;
  font-size: 0.875rem;
  color: var(--identity-text-primary);
  background: var(--identity-card-bg);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  word-break: break-all;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.identity-qr-container .identity-qr-manual .identity-qr-manual__code button {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--identity-link);
  cursor: pointer;
  padding: 0.25rem;
}
.identity-qr-container .identity-qr-manual .identity-qr-manual__code button:hover {
  color: var(--identity-link-hover);
}

.identity-password-strength {
  margin-top: 0.5rem;
}
.identity-password-strength .identity-password-strength__bar {
  height: 4px;
  background: var(--identity-separator);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}
.identity-password-strength .identity-password-strength__bar .identity-password-strength__fill {
  height: 100%;
  border-radius: 9999px;
  transition-property: width, background;
  transition-duration: 300ms;
  transition-timing-function: ease;
  width: 0%;
}
.identity-password-strength .identity-password-strength__bar .identity-password-strength__fill.strength-weak {
  width: 25%;
  background: var(--identity-error);
}
.identity-password-strength .identity-password-strength__bar .identity-password-strength__fill.strength-fair {
  width: 50%;
  background: var(--identity-warning);
}
.identity-password-strength .identity-password-strength__bar .identity-password-strength__fill.strength-good {
  width: 75%;
  background: var(--identity-info);
}
.identity-password-strength .identity-password-strength__bar .identity-password-strength__fill.strength-strong {
  width: 100%;
  background: var(--identity-success);
}
.identity-password-strength .identity-password-strength__text {
  font-size: 0.75rem;
  color: var(--identity-text-muted);
}
.identity-password-strength .identity-password-strength__text.strength-weak {
  color: var(--identity-error);
}
.identity-password-strength .identity-password-strength__text.strength-fair {
  color: var(--identity-warning);
}
.identity-password-strength .identity-password-strength__text.strength-good {
  color: var(--identity-info);
}
.identity-password-strength .identity-password-strength__text.strength-strong {
  color: var(--identity-success);
}

.identity-alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.identity-alert i {
  flex-shrink: 0;
  margin-top: 2px;
}
.identity-alert.identity-alert--error {
  background: var(--identity-status-error-bg);
  color: var(--identity-error);
  border: 1px solid rgba(229, 62, 62, 0.3);
}
.identity-alert.identity-alert--success {
  background: var(--identity-status-success-bg);
  color: var(--identity-success);
  border: 1px solid rgba(56, 161, 105, 0.3);
}
.identity-alert.identity-alert--warning {
  background: var(--identity-status-warning-bg);
  color: var(--identity-warning);
  border: 1px solid rgba(255, 167, 38, 0.3);
}
.identity-alert.identity-alert--info {
  background: var(--identity-status-info-bg);
  color: var(--identity-info);
  border: 1px solid rgba(46, 163, 242, 0.3);
}

.identity-footer {
  margin-top: 2rem;
  text-align: center;
  color: var(--identity-text-muted);
  font-size: 0.75rem;
}

.identity-recovery-codes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--identity-input-bg);
  border-radius: 8px;
  margin-bottom: 1.5rem;
}
.identity-recovery-codes .identity-recovery-code {
  font-family: monospace;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  background: var(--identity-card-bg);
  border-radius: 6px;
  text-align: center;
}

.identity-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--identity-status-warning-bg);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  color: var(--identity-warning);
  font-size: 0.875rem;
}
.identity-countdown .identity-countdown__time {
  font-weight: 600;
  font-family: monospace;
  font-size: 1.25rem;
}

.identity-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}
.identity-security-badge.identity-security-badge--enabled {
  background: var(--identity-status-success-bg);
  color: var(--identity-success);
}
.identity-security-badge.identity-security-badge--disabled {
  background: var(--identity-status-error-bg);
  color: var(--identity-error);
}

.identity-instructions {
  text-align: left;
  margin-bottom: 2rem;
}
.identity-instructions .identity-instructions__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--identity-text-primary);
  margin-bottom: 1rem;
}
.identity-instructions ol {
  padding-left: 1.5rem;
  margin: 0;
}
.identity-instructions ol li {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--identity-text-secondary);
  line-height: 1.6;
}
.identity-instructions ol li code {
  background: var(--identity-input-bg);
  padding: 2px 0.25rem;
  border-radius: 6px;
  font-size: 0.75rem;
}

:root {
  --identity-primary: #1a365d;
  --identity-primary-dark: #1a2f4e;
  --identity-primary-light: #2c5282;
  --identity-accent: #3182ce;
  --identity-accent-light: #4299e1;
  --identity-complementary: #8b18a2;
  --identity-success: #38a169;
  --identity-warning: #ffa726;
  --identity-error: #e53e3e;
  --identity-info: #2ea3f2;
}

:root,
[data-theme=light] {
  --identity-bg-start: #f8f9fa;
  --identity-bg-end: #e9ecef;
  --identity-bg-pattern-opacity: 0.03;
  --identity-card-bg: #ffffff;
  --identity-card-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.04);
  --identity-card-border: 1px solid rgba(0, 0, 0, 0.05);
  --identity-card-radius: 16px;
  --identity-text-primary: #222222;
  --identity-text-secondary: #333333;
  --identity-text-muted: #666666;
  --identity-text-on-brand: #ffffff;
  --identity-input-bg: #ffffff;
  --identity-input-border: #D0D0D2;
  --identity-input-border-focus: var(--identity-primary);
  --identity-input-placeholder: #666666;
  --identity-input-shadow-focus: 0 0 0 3px rgba(#1a365d, 0.15);
  --identity-brand-bg-start: #222222;
  --identity-brand-bg-end: #3c3c3c;
  --identity-brand-text: #ffffff;
  --identity-brand-pattern-opacity: 0.1;
  --identity-link: #007bb6;
  --identity-link-hover: #1a365d;
  --identity-separator: #D0D0D2;
  --identity-status-success-bg: rgba(56, 161, 105, 0.05);
  --identity-status-error-bg: rgba(229, 62, 62, 0.05);
  --identity-status-warning-bg: rgba(255, 167, 38, 0.05);
  --identity-status-info-bg: rgba(46, 163, 242, 0.05);
}

[data-theme=dark] {
  --identity-bg-start: #1a1a2e;
  --identity-bg-end: #16213e;
  --identity-bg-pattern-opacity: 0.05;
  --identity-card-bg: rgba(30, 30, 50, 0.95);
  --identity-card-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 8px 16px rgba(0, 0, 0, 0.2);
  --identity-card-border: 1px solid rgba(255, 255, 255, 0.1);
  --identity-card-radius: 16px;
  --identity-text-primary: #f8f9fa;
  --identity-text-secondary: #adb5bd;
  --identity-text-muted: #6c757d;
  --identity-text-on-brand: #ffffff;
  --identity-input-bg: rgba(255, 255, 255, 0.08);
  --identity-input-border: rgba(255, 255, 255, 0.15);
  --identity-input-border-focus: var(--identity-primary-light);
  --identity-input-placeholder: rgba(255, 255, 255, 0.4);
  --identity-input-shadow-focus: 0 0 0 3px rgba(#2c5282, 0.25);
  --identity-brand-bg-start: #1a365d;
  --identity-brand-bg-end: #1a2f4e;
  --identity-brand-text: #ffffff;
  --identity-brand-pattern-opacity: 0.15;
  --identity-link: #2c5282;
  --identity-link-hover: #4299e1;
  --identity-separator: rgba(255, 255, 255, 0.1);
  --identity-status-success-bg: rgba(56, 161, 105, 0.15);
  --identity-status-error-bg: rgba(229, 62, 62, 0.15);
  --identity-status-warning-bg: rgba(255, 167, 38, 0.15);
  --identity-status-info-bg: rgba(46, 163, 242, 0.15);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --identity-bg-start: #1a1a2e;
    --identity-bg-end: #16213e;
    --identity-bg-pattern-opacity: 0.05;
    --identity-card-bg: rgba(30, 30, 50, 0.95);
    --identity-card-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 8px 16px rgba(0, 0, 0, 0.2);
    --identity-card-border: 1px solid rgba(255, 255, 255, 0.1);
    --identity-text-primary: #f8f9fa;
    --identity-text-secondary: #adb5bd;
    --identity-text-muted: #6c757d;
    --identity-input-bg: rgba(255, 255, 255, 0.08);
    --identity-input-border: rgba(255, 255, 255, 0.15);
    --identity-input-border-focus: var(--identity-primary-light);
    --identity-input-placeholder: rgba(255, 255, 255, 0.4);
    --identity-input-shadow-focus: 0 0 0 3px rgba(#2c5282, 0.25);
    --identity-brand-bg-start: #1a365d;
    --identity-brand-bg-end: #1a2f4e;
    --identity-brand-pattern-opacity: 0.15;
    --identity-link: #2c5282;
    --identity-link-hover: #4299e1;
    --identity-separator: rgba(255, 255, 255, 0.1);
    --identity-status-success-bg: rgba(56, 161, 105, 0.15);
    --identity-status-error-bg: rgba(229, 62, 62, 0.15);
    --identity-status-warning-bg: rgba(255, 167, 38, 0.15);
    --identity-status-info-bg: rgba(46, 163, 242, 0.15);
  }
}
@keyframes identity-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes identity-fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes identity-fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes identity-scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes identity-shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}
@keyframes identity-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--identity-primary), 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(var(--identity-primary), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--identity-primary), 0);
  }
}
@keyframes identity-checkmark {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes identity-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes identity-bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}
@keyframes identity-progressFill {
  from {
    width: 0%;
  }
  to {
    width: var(--progress-width, 100%);
  }
}
@keyframes identity-gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.identity-animate-fadeInUp {
  animation: identity-fadeInUp 300ms ease forwards;
}

.identity-animate-fadeInDown {
  animation: identity-fadeInDown 300ms ease forwards;
}

.identity-animate-fadeIn {
  animation: identity-fadeIn 300ms ease forwards;
}

.identity-animate-scaleIn {
  animation: identity-scaleIn 300ms ease forwards;
}

.identity-animate-shake {
  animation: identity-shake 0.5s ease-in-out;
}

.identity-animate-pulse {
  animation: identity-pulse 2s infinite;
}

.identity-animate-bounce {
  animation: identity-bounce 2s infinite;
}

.identity-animate-spin {
  animation: identity-spin 1s linear infinite;
}

.identity-stagger > * {
  opacity: 0;
  animation: identity-fadeInUp 0.4s ease forwards;
}
.identity-stagger > *:nth-child(1) {
  animation-delay: 0.05s;
}
.identity-stagger > *:nth-child(2) {
  animation-delay: 0.1s;
}
.identity-stagger > *:nth-child(3) {
  animation-delay: 0.15s;
}
.identity-stagger > *:nth-child(4) {
  animation-delay: 0.2s;
}
.identity-stagger > *:nth-child(5) {
  animation-delay: 0.25s;
}
.identity-stagger > *:nth-child(6) {
  animation-delay: 0.3s;
}
.identity-stagger > *:nth-child(7) {
  animation-delay: 0.35s;
}
.identity-stagger > *:nth-child(8) {
  animation-delay: 0.4s;
}
.identity-stagger > *:nth-child(9) {
  animation-delay: 0.45s;
}
.identity-stagger > *:nth-child(10) {
  animation-delay: 0.5s;
}

.identity-hover-lift {
  transition-property: transform, box-shadow;
  transition-duration: 300ms;
  transition-timing-function: ease;
}
.identity-hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.identity-hover-glow {
  transition-property: box-shadow;
  transition-duration: 300ms;
  transition-timing-function: ease;
}
.identity-hover-glow:hover {
  box-shadow: 0 0 20px rgba(var(--identity-primary), 0.3);
}

.identity-loading {
  position: relative;
  pointer-events: none;
}
.identity-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: identity-spin 0.8s linear infinite;
}
.identity-loading > * {
  opacity: 0.5;
}

.identity-skeleton {
  background: linear-gradient(90deg, var(--identity-separator) 0%, var(--identity-input-bg) 50%, var(--identity-separator) 100%);
  background-size: 200% 100%;
  animation: identity-gradientShift 1.5s ease-in-out infinite;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *,
*::before,
*::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .identity-card {
    opacity: 1;
    transform: none;
  }

  .identity-stagger > * {
    opacity: 1;
    animation: none;
  }
}
.identity-page-enter {
  opacity: 0;
  transform: translateY(20px);
}

.identity-page-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 300ms ease, transform 300ms ease;
}

.identity-page-exit {
  opacity: 1;
  transform: translateY(0);
}

.identity-page-exit-active {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.identity-card.animate-in {
  animation: identity-fadeInUp 0.5s ease forwards;
}

.identity-status-icon {
  animation: identity-scaleIn 0.4s ease 0.2s forwards;
  opacity: 0;
}

.identity-form__input:focus {
  animation: identity-pulse 0.3s ease;
}

.identity-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.identity-form__group.has-error .identity-form__input {
  animation: identity-shake 0.5s ease;
}

.identity-form__group.has-success .identity-form__input {
  border-color: var(--identity-success) !important;
}
.identity-form__group.has-success .identity-form__input-icon {
  color: var(--identity-success);
}

.identity-2fa-code__digit {
  transition-property: transform, border-color;
  transition-duration: 300ms;
  transition-timing-function: ease;
}
.identity-2fa-code__digit:focus {
  transform: scale(1.05);
}
.identity-2fa-code__digit.filled {
  border-color: var(--identity-primary);
}

.identity-password-strength__fill {
  animation: identity-progressFill 0.3s ease forwards;
}

.identity-copy-feedback {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--identity-success);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  opacity: 0;
  animation: identity-fadeInDown 0.3s ease forwards, identity-fadeIn 0.3s ease 1.5s reverse forwards;
}

.identity-page * {
  box-sizing: border-box;
}
.identity-page a {
  color: var(--identity-link);
  text-decoration: none;
  transition-property: color;
  transition-duration: 300ms;
  transition-timing-function: ease;
}
.identity-page a:hover {
  color: var(--identity-link-hover);
}
.identity-page button:focus,
.identity-page .btn:focus {
  box-shadow: none;
}
.identity-page .form-control:focus {
  box-shadow: var(--identity-input-shadow-focus);
  border-color: var(--identity-input-border-focus);
}

.identity-page--register .identity-brand {
  background: linear-gradient(135deg, var(--identity-primary) 0%, var(--identity-complementary) 100%);
}

.identity-page--forgot-password .identity-status-icon {
  background: var(--identity-status-info-bg);
  color: var(--identity-info);
}

.identity-page--reset-password .identity-status-icon {
  background: var(--identity-status-warning-bg);
  color: var(--identity-warning);
}

.identity-page--2fa .identity-card--simple {
  max-width: 440px;
}

.identity-page--access-denied .identity-status-icon {
  background: var(--identity-status-error-bg);
  color: var(--identity-error);
}

.identity-page--lockout .identity-status-icon {
  background: var(--identity-status-warning-bg);
  color: var(--identity-warning);
}

.identity-manage {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.identity-manage__header {
  margin-bottom: 3rem;
}
.identity-manage__header h1 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--identity-text-primary);
  margin: 0 0 0.5rem;
}
.identity-manage__header p {
  font-size: 1rem;
  color: var(--identity-text-secondary);
  margin: 0;
}

.identity-manage__content {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
}
@media (max-width: 768px) {
  .identity-manage__content {
    grid-template-columns: 1fr;
  }
}

.identity-manage-nav {
  background: var(--identity-card-bg);
  border-radius: var(--identity-card-radius);
  box-shadow: var(--identity-card-shadow);
  border: var(--identity-card-border);
  overflow: hidden;
  padding: 1rem;
  height: fit-content;
  position: sticky;
  top: 2rem;
}
@media (max-width: 768px) {
  .identity-manage-nav {
    position: static;
  }
}

.identity-manage-nav__title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--identity-text-muted);
  padding: 0.5rem 1rem;
  margin-bottom: 0.25rem;
}

.identity-manage-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.identity-manage-nav__item {
  margin-bottom: 0.25rem;
}

.identity-manage-nav__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: var(--identity-text-secondary);
  font-size: 0.875rem;
  transition-property: background, color;
  transition-duration: 300ms;
  transition-timing-function: ease;
}
.identity-manage-nav__link i {
  width: 20px;
  text-align: center;
  color: var(--identity-text-muted);
  transition-property: color;
  transition-duration: 300ms;
  transition-timing-function: ease;
}
.identity-manage-nav__link:hover {
  background: var(--identity-input-bg);
  color: var(--identity-text-primary);
}
.identity-manage-nav__link:hover i {
  color: var(--identity-primary);
}
.identity-manage-nav__link.active {
  background: var(--identity-primary);
  color: var(--identity-text-on-brand);
}
.identity-manage-nav__link.active i {
  color: inherit;
}

.identity-manage-main {
  background: var(--identity-card-bg);
  border-radius: var(--identity-card-radius);
  box-shadow: var(--identity-card-shadow);
  border: var(--identity-card-border);
  overflow: hidden;
  padding: 2rem;
}

.identity-manage-main__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--identity-text-primary);
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.identity-manage-main__title i {
  color: var(--identity-primary);
}

.identity-manage-main__description {
  font-size: 0.875rem;
  color: var(--identity-text-secondary);
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--identity-separator);
}

.identity-manage-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--identity-separator);
}
.identity-manage-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.identity-manage-section__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--identity-text-primary);
  margin: 0 0 1rem;
}

.identity-manage-section__description {
  font-size: 0.875rem;
  color: var(--identity-text-secondary);
  margin: 0 0 1.5rem;
}

.identity-security-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.identity-security-card {
  padding: 1.5rem;
  background: var(--identity-input-bg);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.identity-security-card .identity-security-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}
.identity-security-card .identity-security-card__content {
  flex: 1;
}
.identity-security-card .identity-security-card__content h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--identity-text-primary);
  margin: 0 0 0.25rem;
}
.identity-security-card .identity-security-card__content p {
  font-size: 0.75rem;
  color: var(--identity-text-secondary);
  margin: 0;
}
.identity-security-card.identity-security-card--enabled .identity-security-card__icon {
  background: var(--identity-status-success-bg);
  color: var(--identity-success);
}
.identity-security-card.identity-security-card--disabled .identity-security-card__icon {
  background: var(--identity-status-error-bg);
  color: var(--identity-error);
}
.identity-security-card.identity-security-card--warning .identity-security-card__icon {
  background: var(--identity-status-warning-bg);
  color: var(--identity-warning);
}

.identity-danger-zone {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--identity-status-error-bg);
  border: 1px solid rgba(229, 62, 62, 0.3);
  border-radius: 12px;
}
.identity-danger-zone .identity-danger-zone__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--identity-error);
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.identity-danger-zone .identity-danger-zone__description {
  font-size: 0.875rem;
  color: var(--identity-text-secondary);
  margin: 0 0 1.5rem;
}

@media (max-width: 768px) {
  .identity-page {
    padding: 1rem;
  }

  .identity-card--split .identity-brand {
    min-height: 200px;
  }

  .identity-form-section {
    padding: 1.5rem;
  }

  .identity-card--status {
    padding: 2rem;
  }

  .identity-2fa-code .identity-2fa-code__digit {
    width: 40px;
    height: 48px;
    font-size: 1.25rem;
  }
}
@media (max-width: 480px) {
  .identity-brand__features {
    display: none;
  }

  .identity-form__row {
    flex-direction: column;
    align-items: stretch;
  }
  .identity-form__row .identity-checkbox {
    order: 2;
  }
  .identity-form__row .identity-btn--link {
    order: 1;
    text-align: right;
    margin-bottom: 0.5rem;
  }
}

/*# sourceMappingURL=area_identity.css.map */
