/* ================================= */
/* IDENTITY SERVER - OPTIMIZED CSS */
/* ================================= */

/* ================================= */
/* 1. GLOBAL/BASE STYLES */
/* ================================= */

/* Font declarations */
@font-face {
    font-display: swap;
    font-family: 'Source Sans 3';
    font-weight: 300;
    src: url('../font/sans3/SourceSans3-Light.ttf') format('truetype');
}

@font-face {
    font-display: swap;
    font-family: 'Source Sans 3';
    font-weight: 400;
    src: url('../font/sans3/SourceSans3-Regular.ttf') format('truetype');
}

@font-face {
    font-display: swap;
    font-family: 'Source Sans 3';
    font-weight: 500;
    src: url('../font/sans3/SourceSans3-Medium.ttf') format('truetype');
}

@font-face {
    font-display: swap;
    font-family: 'Source Sans 3';
    font-weight: 700;
    src: url('../font/sans3/SourceSans3-Bold.ttf') format('truetype');
}

* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}
html {
  height: 100%;
  overflow: hidden;
}

body {
  height: 100%;
  overflow: hidden;
}

/* Global H1 styling for consistency across all pages */
h1 {
  font-size: 1.75rem;
  font-weight: 500;
  color: #333;
  margin: 0 0 1rem 0;
  text-align: center;
  line-height: 1.3;
}

/* Global H2 styling for consistency across all pages */
h2 {
  font-size: 1.25rem;
  font-weight: 400;
  color: #333;
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

/* ================================= */
/* 2. LAYOUT COMPONENTS */
/* ================================= */

.wrapper {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.container {
  display: block;
  width: 100%;
  margin: 0 auto;
  max-width: 2560px;
  min-width: 320px;
  padding: 1.25rem 3rem 0 3rem;
}

.account-container {
  display: block;
  width: 100%;
  margin: 0 auto;
  max-width: 1440px;
  min-width: 320px;
  padding: 1.25rem 3rem 0 3rem;
  box-sizing: border-box;
}

.account-setting-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1.25rem 2rem;
  overflow-y: auto;
}

/* ================================= */
/* 3. NAVIGATION & HEADER */
/* ================================= */

.header-bar {
  background-color: #1a1a2e;
  height: 56px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.topbar {
  background-color: #333333;
  color: #ffffff;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.promo-item::before {
  content: '|';
  margin: 0 0.75rem;
}

.promo-item:first-child::before {
  content: none;
}

.promo-item {
  font-weight: 300;
}

.promo-item strong {
  font-weight: 500;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 2560px;
  padding: 0 2rem;
  position: relative;
  overflow: visible;
}

.header-container.signed-in {
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
}

.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-link:hover {
  text-decoration: none !important;
}

.header-logo-icon {
  display: flex;
  align-items: center;
  height: 32px;
  width: auto;
}

.header-logo-text {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.02em;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.user-name {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 400;
}

.logout-btn {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  text-decoration: none;
}

.header-user .dropdown {
  position: relative;
}

.header-user .dropdown-toggle {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-user .dropdown-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.dropdown-arrow {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.dropdown.show .dropdown-arrow {
  transform: rotate(180deg);
}

.header-user .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  min-width: 150px;
  z-index: 9999;
  margin-top: 0.25rem;
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  opacity: 1;
  visibility: visible;
}

.header-user .dropdown-menu.show {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.header-user .dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  text-decoration: none;
  font-size: 0.875rem;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  list-style: none;
}

.header-user .dropdown-item:hover {
  background-color: #f5f5f5;
  text-decoration: none;
}

/* Ensure dropdown works with Bootstrap 5 */
.dropdown-toggle::after {
  display: none;
}

/* Force dropdown to show when Bootstrap 5 adds show class */
.dropdown-menu.show {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ================================= */
/* 4. FORM ELEMENTS */
/* ================================= */
.verify-identity-form-container {
    max-width: 520px;
    width: 100%;
    margin: 1.5rem auto;
    padding: 1.5rem 2rem;
    text-align: left;
    background-color: transparent;
}

.form-container {
  max-width: 480px;
  width: 100%;
  margin: 1.5rem auto;
  padding: 1.5rem 2rem;
  text-align: left;
  background-color: transparent;
}

/* Form header for public pages (logo + title) */
.form-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.form-header h1 {
  margin-bottom: 0;
}

/* Integration icons for external registration */
.integration-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.integration-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface-secondary);
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.integration-link {
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

.integration-link svg {
  opacity: 0.6;
}

/* Provider info section */
.provider-info {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.provider-info p {
  margin: 0;
  line-height: 1.5;
}

/* Readonly input styling */
.input-group.readonly input {
  background-color: var(--surface-secondary);
  color: var(--text-muted);
  cursor: not-allowed;
  border-color: var(--border-color);
}

.input-group .helper-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Wider form container for pages with more content */
.form-container.wide-content {
  max-width: 700px;
}

/* Extra wide container for diagnostic/technical pages */
.form-container.extra-wide {
  max-width: 1000px;
}

/* Diagnostics page specific styling */
#diagnostics-page {
  font-family: 'Courier New', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}

#diagnostics-page .card {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

#diagnostics-page .card-header {
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  padding: 0.75rem 1rem;
}

#diagnostics-page .card-header h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

#diagnostics-page dt {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  color: #333;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

#diagnostics-page dd {
  font-family: 'Courier New', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
  background-color: #f5f5f5;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border-left: 3px solid #333;
  margin-left: 0;
  margin-bottom: 0.5rem;
  word-break: break-all;
  font-size: 0.8rem;
  color: #333;
}

.account-setting-content .form-container {
  width: clamp(20rem, 60vw, 48rem);
  margin: 0 auto;
  text-align: left;
  padding: 2rem;
  box-sizing: border-box;
  background-color: transparent;
}

.container > .account-setting-content {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1rem 2rem;
}

.logo {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  display: block;
  object-fit: contain;
  margin: 0 auto 0.75rem auto;
}

.icon-banner {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  object-fit: contain;
}

form {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.input-group {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.input-group input,
.input-group textarea,
.input-group select {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 0.65rem;
  border: 1px solid #ccc;
  font-size: 1rem;
  line-height: 1rem;
  height: auto;
  border-radius: 3px;
  background-color: #fff;
  box-sizing: border-box;
  margin-bottom: 0;
  -webkit-appearance: none;
  appearance: none;
}

/* Constrain form elements width on larger screens for better readability */
@media (min-width: 480px) {
  .input-group,
  .remember-me,
  .highlighted-value {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .current-info {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
  border: 1px solid #000;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.input-group input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px #fff inset !important;
  box-shadow: 0 0 0px 1000px #fff inset !important;
}

/* Additional input styling */
.input-group input[type='password']::-ms-reveal,
.input-group input[type='password']::-ms-clear,
.input-group input[type='password']::-webkit-contacts-auto-fill-button,
.input-group input[type='password']::-webkit-credentials-auto-fill-button {
  display: none !important;
}

/* Recovery code specific input */
.recovery-code-input,
.recovery-code-input:required,
.recovery-code-input:invalid,
.recovery-code-input:required:invalid {
  font-family: 'Roboto Mono', 'Courier New', Consolas, monospace;
  letter-spacing: 0.15em;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 500;
  padding: 1rem 1.5rem !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: 8px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: none !important;
  outline: none !important;
}

.recovery-code-input:focus,
.recovery-code-input:focus:required,
.recovery-code-input:focus:invalid {
  border-color: #0066cc !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1) !important;
}

.recovery-code-input::placeholder {
  color: #aaa;
  letter-spacing: 0.1em;
}

/* Recovery code page specific */
#recovery-code-page .alert-info {
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid #0066cc;
}

#recovery-code-page .alert-info strong {
  color: #0066cc;
  display: inline;
  margin-right: 0.25rem;
}

#recovery-code-page .field-helper {
  font-size: 0.8125rem;
  color: #6c757d;
  text-align: center;
  margin: 0.75rem 0 1.5rem 0;
}

#recovery-code-page .link-button {
  display: inline-block;
  font-size: 0.875rem;
  color: #0066cc;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.02em;
}

#recovery-code-page .link-button:hover {
  text-decoration: underline;
}

/* Forgot password page specific - tighter spacing */
#forgot-password-page form .alert-info {
  margin-bottom: 0.5rem;
  padding: 0.625rem 1rem;
}

#forgot-password-page .input-group {
  margin-bottom: 0.75rem;
}

/* Alert styling */
.alert {
  padding: 0.875rem 1.25rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  border: 1px solid transparent;
}

.alert strong {
  font-weight: 500;
  display: block;
  margin-bottom: 0.25rem;
}

.alert-info {
  background-color: #e7f3ff;
  border-color: #b6d4fe;
  color: #084298;
}

.alert-success {
  background-color: #d1e7dd;
  border-color: #badbcc;
  color: #0f5132;
  text-align: center;
}

.alert-success strong,
.alert-success h4 {
  color: #0f5132;
  display: block;
  margin-bottom: 0.25rem;
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
  text-align: center;
}

.alert-danger strong {
  color: #721c24;
  display: block;
  margin-bottom: 0.25rem;
}

.alert-danger .danger ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.alert-warning {
  background-color: #fff3cd;
  border-color: #ffc107;
  border-left: 4px solid #ffc107;
  color: #664d03;
  text-align: left;
  margin-top: 1rem;
}

.alert-warning strong {
  color: #664d03;
  display: block;
  margin-bottom: 0.25rem;
}

.alert-warning p {
  font-size: 0.875rem;
  margin: 0;
}

.alert-danger .danger li {
  margin-bottom: 0.125rem;
}

/* Constrain alert width on larger screens */
@media (min-width: 480px) {
  .alert-info,
  .alert,
  .alert-light,
  .alert-success {
    max-width: 420px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Field helper text */
.field-helper {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

/* Consistent button widths for MFA pages */
.btn-mfa-consistent {
  width: 280px;
  max-width: 100%;
}


/* Signup CTA bottom spacing */
.signup-cta.no-bottom-margin {
  margin-bottom: 0;
}

.input-group label {
  position: absolute;
  display: inline-block;
  top: 0.55rem;
  left: 0.25rem;
  padding: 0.25rem 0.5rem;
  width: auto;
  font-size: 1rem;
  color: #777;
  background-color: #fff;
  transform-origin: 0 -150%;
  transition: transform 300ms ease;
  pointer-events: none;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
  transform: translate(0, -1.05rem) scale(0.875);
  color: #999;
}

/* Password toggle */
.input-group input[type='password'],
.input-group input[type='text'] {
  padding-right: 2.5rem;
}

.toggle-password {
  position: absolute;
  right: 0.5rem;
  top: 1.4rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-icon {
  width: 24px;
  height: 24px;
}

/* Checkbox styling */
input[type='checkbox'] {
  transform: scale(1.2);
  margin: 0 0.5rem 0 0;
  accent-color: #007bff;
}

.remember-me {
  display: flex;
  align-items: center;
  font-size: 1rem;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
  line-height: 1.2;
  width: 100%;
  padding: 0;
  border: none;
}

.remember-me input[type='checkbox'] {
  margin: 0 0.75rem 0 0;
  width: 18px;
  height: 18px;
  accent-color: #007bff;
  flex-shrink: 0;
}

.remember-me label {
  font-size: 1rem;
  line-height: 1.2;
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 0 !important;
}

/* ================================= */
/* 5. BUTTONS & CTA COMPONENTS */
/* ================================= */



.signup-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.button-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  margin-top: 1.5rem;
}

.button-row .btn {
  flex: 0 1 auto;
  white-space: nowrap;
}

/* Only stack buttons on very small screens */
@media (max-width: 400px) {
  .button-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .button-row .btn {
    width: 100%;
  }
}

/* Button styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 38px;
  line-height: 1.5;
  box-sizing: border-box;
}

.btn-primary {
  background-color: #1976d2 !important;
  color: #fff !important;
  border: 1px solid #1976d2;
}

.btn-primary:hover {
  background-color: #1565c0;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(25, 118, 210, 0.3);
  border-color: #1565c0;
}

/* Link button - styled as text link for secondary actions */
.link-button {
    display: inline-block;
    background-color: #fff;
    border: solid 1px #041e42;
    color: #041e42;
    font-size: 0.875rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0;
    align-self: center;
    width: fit-content;
}

    .link-button:hover {
        text-decoration: underline;
        background-color: #041e42;
        border: solid 1px #fff;
        color: #fff
    }

/* Link-buttons directly inside form-container should be centered and fit-content */
.form-container > .link-button {
    display: block;
    width: fit-content;
    margin: 0 auto;
    text-align: center;
    background-color: #fff;
    border: solid 1px #041e42;
    color: #041e42;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

    .form-container > .link-button:hover {
        background-color: #041e42;
    }
/* Link-buttons in signup-cta (Cancel, Back to Sign In, Resend Code, etc.) */
.signup-cta .link-button {
    padding: 0.25rem 0.5rem;
    background: none !important;
    border: none !important;
    transition: all 0.2s ease;
    width: fit-content !important;
    align-self: center !important;
    background-color: #fff;
    border: solid 1px #041e42;
    color: #041e42;
}

.signup-cta .link-button:hover {
  background-color: rgba(0, 102, 204, 0.08) !important;
  border-radius: 4px;
  text-decoration: underline;
}

/* Link styled as primary button - for anchor tags */
a.link-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background-color: #1976d2;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  border: 1px solid #1976d2;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 38px;
  box-sizing: border-box;
  text-align: center;
}

a.link-btn:hover,
a.link-btn:focus,
a.link-btn:active {
  background-color: #1565c0 !important;
  border-color: #1565c0 !important;
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(25, 118, 210, 0.3);
}

/* Sign In button specific styling */
.signup-cta .btn-primary {
  min-width: 180px;
}
.signup-cta ._Primary_1g81k_59 {
    min-width: 180px;
}
.signup-cta ._Button_1g81k_1._Primary_1g81k_59:hover {
    background-image: linear-gradient(45deg,#E02a4f,#900A25)
}
.signup-cta ._Button_1g81k_1._Primary_1g81k_59 {
    background-image: linear-gradient(45deg,#E02a4f,#ba0c2f);
    color: #fff
}
.signup-cta ._Button_1g81k_1 {
    display: inline-block;
    margin-bottom: 5px;
    touch-action: manipulation;
    border: 1px solid transparent;
    white-space: nowrap;
    padding: 0 15px;
    user-select: none;
    min-width: 150px;
    font-weight: 500;
    text-transform: uppercase;
    border-style: solid;
    border-width: 1px;
    border-radius: 5px;
    letter-spacing: 1px;
    font-size: 15.5px;
    line-height: 40px;
    height: 40px;
    vertical-align: middle;
    text-align: center;
    cursor: pointer
}

    .signup-cta ._Button_1g81k_1:focus {
        outline: -webkit-focus-ring-color auto 5px;
        outline-offset: -2px
    }

.status-header ._Primary_1g81k_59 {
    min-width: 180px;
}

.status-header ._Button_1g81k_1._Primary_1g81k_59:hover {
    background-image: linear-gradient(45deg,#E02a4f,#900A25)
}

.status-header ._Button_1g81k_1._Primary_1g81k_59 {
    background-image: linear-gradient(45deg,#E02a4f,#ba0c2f);
    color: #fff
}

.status-header ._Button_1g81k_1 {
    display: inline-block;
    margin-bottom: 5px;
    touch-action: manipulation;
    border: 1px solid transparent;
    white-space: nowrap;
    padding: 0 15px;
    user-select: none;
    min-width: 150px;
    font-weight: 500;
    text-transform: uppercase;
    border-style: solid;
    border-width: 1px;
    border-radius: 5px;
    letter-spacing: 1px;
    font-size: 15.5px;
    line-height: 40px;
    height: 40px;
    vertical-align: middle;
    text-align: center;
    cursor: pointer
}

.status-header ._Button_1g81k_1:focus {
    outline: -webkit-focus-ring-color auto 5px;
    outline-offset: -2px
}

.btn-secondary {
  background-color: #6c757d;
  color: #fff;
  border: none;
}

.btn-secondary:hover {
  background-color: #5a6268;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Button width modifiers */
.btn-fit-content {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Button size modifiers */
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  min-height: 32px;
}

/* Danger button styling */
.btn-danger {
  background-color: #dc3545 !important;
  color: #fff !important;
  border: 1px solid #dc3545;
}

.btn-danger:hover {
  background-color: #c82333;
  color: #fff;
  border-color: #c82333;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Link button styling */
.btn-link {
  background: none;
  border: none;
  color: #1976d2;
  text-decoration: underline;
  padding: 0.5rem;
  font-size: 0.875rem;
  text-transform: none;
  font-weight: 500;
  display: inline-block;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  min-height: auto;
}

.btn-link:hover {
  color: #333;
  background-color: rgba(0, 0, 0, 0.02);
  text-decoration: underline;
}

/* Social buttons */
.social-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.375rem;
  margin: 1rem auto;
  width: 100%;
  max-width: 100%;
}

/* Constrain social buttons width on larger screens */
@media (min-width: 480px) {
  .social-buttons {
    max-width: 420px !important;
  }
}

.social-button {
  padding: 0.5rem 0.5rem;
  border: 1px solid #d1d5db;
  background-color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  transition: all 0.2s ease;
  border-radius: 4px;
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  width: 100%;
  min-width: 120px;
}

.social-button:hover {
  border-color: #000;
  background-color: #f9fafb;
  text-decoration: none;
  color: #374151;
}

.social-button-text {
  display: inline-block;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: none;
  text-transform: uppercase;
  flex: 1;
  min-width: 0;
}

/* Social button text visible on all screen sizes */

.social-button-icon {
  height: 18px;
  width: 18px;
  flex-shrink: 0;
}

/* Removed unused specific provider button colors */

/* ===========================================
   Social Buttons Layout Rules
   - 1 button: full width
   - 2 buttons: 2 columns, side by side
   - 3 buttons: 3 columns, all in one row
   - 4 buttons: 3 on first row, 1 full width on second
   - 5 buttons: 3 on first row, 2 centered on second
   - 6+ buttons: 3 columns, natural flow
   =========================================== */

/* For exactly 1 button - full width */
.social-buttons:has(.social-button:only-child) {
  grid-template-columns: 1fr;
}

/* For exactly 2 buttons - 2 columns */
.social-buttons:has(.social-button:nth-child(2):last-child) {
  grid-template-columns: repeat(2, 1fr);
}

/* For exactly 4 buttons - 3 on top, 1 full width on bottom */
.social-buttons:has(.social-button:nth-child(4):last-child) .social-button:last-child {
  grid-column: 1 / -1;
}

/* For exactly 5 buttons - 3 on top, 2 centered on bottom using 6-column grid */
.social-buttons:has(.social-button:nth-child(5):last-child) {
  grid-template-columns: repeat(6, 1fr);
}

.social-buttons:has(.social-button:nth-child(5):last-child) .social-button:nth-child(1),
.social-buttons:has(.social-button:nth-child(5):last-child) .social-button:nth-child(2),
.social-buttons:has(.social-button:nth-child(5):last-child) .social-button:nth-child(3) {
  grid-column: span 2;
}

.social-buttons:has(.social-button:nth-child(5):last-child) .social-button:nth-child(4) {
  grid-column: 2 / 4;
}

.social-buttons:has(.social-button:nth-child(5):last-child) .social-button:nth-child(5) {
  grid-column: 4 / 6;
}


/* ================================= */
/* 6. PAGE-SPECIFIC STYLES */
/* ================================= */

/* Typography */
.disclaimer {
  font-size: 0.8125rem;
  line-height: 1.375;
  color: #424242;
  text-align: center;
  margin: 1rem 0 0 0;
  opacity: 0.75;
  text-wrap: balance;
}

.disclaimer a {
  color: #1976d2;
  text-decoration: none;
}

.divider {
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: #555;
  font-weight: 700;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: #bbbbbb;
}

.subheading {
  font-size: 1.25rem;
  margin: 1.5rem 0;
  line-height: 1.75rem;
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
  opacity: 0.75;
  text-wrap: balance;
}

.page-description {
  font-size: 0.9375rem;
  color: #6c757d;
  margin: 1rem 0 1.5rem 0;
  line-height: 1.5;
}

.forgot-password {
  font-size: 0.875rem;
  font-weight: 500;
  text-align: right;
  color: #007bff;
  text-decoration: none;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
  display: block;
}

.forgot-password:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Forgot Password Page - Elegant Styling */
#forgot-password-page {
  text-align: center;
}

#forgot-password-page .form-header {
  margin-bottom: 1.5rem;
}

#forgot-password-page .form-header h1 {
  color: #2d3748;
  font-weight: 600;
}

/* Subtle info message instead of alert box */
#forgot-password-page .alert-info {
  background: transparent;
  border: none;
  padding: 0.75rem 0;
  color: #6c757d;
  font-size: 1rem;
  text-align: center;
}

#forgot-password-page .alert-info i {
  color: #007bff;
  margin-right: 0.5rem;
}

/* Help section at bottom - subtle and elegant */
#forgot-password-page .alert-light,
#forgot-password-page .alert-light.border {
  background: transparent !important;
  border: none !important;
  border-top: 1px solid #e9ecef !important;
  border-radius: 0 !important;
  padding: 1.25rem 0 0 0 !important;
  margin-top: 1.5rem !important;
  text-align: center;
}

#forgot-password-page .alert-light i {
  color: #adb5bd;
}

#forgot-password-page .alert-light small {
  color: #6c757d;
  font-size: 0.8rem;
  line-height: 1.5;
}

#forgot-password-page .alert-light strong {
  color: #495057;
  font-weight: 600;
}

/* Button and link styling */
#forgot-password-page .signup-cta {
  margin-top: 1.5rem;
  gap: 1rem;
}

#forgot-password-page .link-button {
  font-size: 0.9rem;
  text-transform: none;
  font-weight: 500;
}

/* Error handling */
.input-group.error input {
  border: 2px solid #da172f !important;
  margin-bottom: 0 !important;
}

.error-details {
  font-size: 0.875rem;
  margin-top: 0.125rem;
  color: #da172f !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.field-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  margin-top: 0.25rem;
}

/* Success pages */
.success-page {
  text-align: center;
  padding: 2rem 1rem;
}

.success-icon-container {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(40, 167, 69, 0.3));
}

.success-message {
  margin: 2rem 0;
}

.success-message h2 {
  color: #28a745;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.success-message p {
  color: #6c757d;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}


/* MFA and authentication pages */
.mfa-page {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  padding: 1rem;
}

.page-description {
  font-size: 0.9375rem;
  margin: 0.5rem 0;
  line-height: 1.4;
  color: #666;
  text-align: center;
}

/* Code input - more specific selector to override .input-group input */
.code-input,
.input-group input.code-input {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Roboto Mono', 'Courier New', monospace;
  letter-spacing: 0.5rem;
  padding: 0.875rem 1.25rem !important;
  margin-bottom: 0;
  width: 100%;
  max-width: 100%;
  border: 2px solid #e0e0e0 !important;
  border-radius: 8px !important;
  transition: border-color 0.2s ease;
}

.code-input:focus,
.input-group input.code-input:focus {
  border-color: #0066cc !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1) !important;
}

.code-input::placeholder,
.input-group input.code-input::placeholder {
  color: #ccc;
  letter-spacing: 0.35rem;
}

/* Floating label for code inputs - always show label above */
.input-group:has(.code-input) label,
.input-group:has(.code-input) input:focus ~ label,
.input-group:has(.code-input) input:valid ~ label {
  position: absolute !important;
  top: -0.5rem !important;
  left: 0.75rem !important;
  font-size: 0.75rem !important;
  color: #666;
  background: #fff !important;
  padding: 0 0.25rem !important;
  transform: none !important;
  pointer-events: none;
}

.input-group:has(.code-input):focus-within label,
.input-group:has(.code-input) input:focus ~ label {
  color: #0066cc !important;
}

.mfa-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.25rem;
  margin: 0;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
}

.mfa-option:hover {
  border-color: #0066cc;
  background: #f8fbff;
  text-decoration: none;
  color: #333;
}

.mfa-option:has(input:checked) {
  border-color: #0066cc;
  background: #f0f7ff;
}

.mfa-option input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #0066cc;
  flex-shrink: 0;
}

.mfa-option label {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  flex: 1;
  margin: 0;
}

.mfa-option label strong {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.mfa-provider-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 0 0.75rem 0;
}

.mfa-status {
  padding: 0;
  margin: 2rem 0;
  border-radius: 0;
  border: none;
  background: transparent;
}

.mfa-status-message {
  margin: 0;
  padding: 0;
  border-radius: 4px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.mfa-status-message.visible {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  max-height: 5rem;
  opacity: 1;
}

.mfa-status-message.mfa-success {
  background-color: #d1e7dd;
  border: 1px solid #badbcc;
  color: #0f5132;
}

.mfa-status-message.mfa-error {
  background-color: #f8d7da;
  border: 1px solid #f5c2c7;
  color: #842029;
}

.message-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.message-icon {
  font-weight: bold;
  font-size: 1rem;
}

.message-text {
  font-size: 1rem;
}

/* Checkbox styling */
input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: #0066cc;
}

input[type="checkbox"] + label {
  cursor: pointer;
}

.form-check {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
  padding: 0.5rem 0;
  margin: 0.5rem 0;
}

/* Checkbox styling with proper positioning */
input[type="checkbox"].form-check-input {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-block !important;
  position: static !important;
  cursor: pointer;
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  vertical-align: middle;
  border: 2px solid #ccc !important;
  border-radius: 3px;
  background-color: white !important;
  transition: all 0.2s ease;
}

input[type="checkbox"].form-check-input:checked {
  background-color: #0066cc !important;
  border-color: #0066cc !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

input[type="checkbox"].form-check-input:hover {
  border-color: #0066cc;
}

input[type="checkbox"].form-check-input:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

.form-check-label {
  display: inline !important;
  cursor: pointer;
  margin: 0;
  font-size: 0.9375rem;
  color: #333;
  user-select: none;
}

/* Device management */
.device-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  background: transparent;
  border-bottom: 1px solid #f0f0f0;
  gap: 1.5rem;
}

.device-item:first-child {
  padding-top: 0;
}

.device-item:last-child {
  border-bottom: none;
}

.device-info {
  flex: 1;
  text-align: left;
}

.device-info h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #333;
}

.device-info p {
  margin: 0;
  color: #6c757d;
  font-size: 0.9375rem;
}

.status-action-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}

.device-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.device-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-badge {
  padding: 0;
  border-radius: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.status-badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-confirmed {
  color: #28a745;
}

.status-confirmed::before {
  background: #28a745;
}

.status-not-configured {
  color: #6c757d;
}

.status-not-configured::before {
  background: #6c757d;
}

.device-action .btn {
  height: 32px;
  font-size: 0.875rem;
  min-width: 80px;
  padding: 0 1rem;
}

.change-btn {
  color: #0066cc;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.change-btn:hover {
  color: #0052a3;
  text-decoration: underline;
}

/* Recovery codes */
.recovery-code {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #495057;
  min-width: 140px;
  text-align: center;
  display: inline-block;
  margin: 0.5rem 1rem;
  font-family: monospace;
}

.codes-container {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem 1rem 0.5rem 1rem; /* Less bottom padding */
  margin: 0 auto;
  text-align: center;
  max-width: 600px;
}

.codes-header {
  margin-bottom: 1rem;
}

.copy-all-button {
  background: #007bff;
  border: none;
  border-radius: 8px;
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.copy-all-button:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

.recovery-codes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

/* Two columns on larger screens */
@media (min-width: 576px) {
  .recovery-codes-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* QR Code */
.qr-code-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem auto;
  padding: 2rem;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  max-width: 600px;
}

.manual-key {
  background: #ffffff;
  border: 2px solid #007bff;
  border-radius: 6px;
  padding: 1rem 1.5rem;
  margin: 1rem auto;
  max-width: 600px;
  font-family: 'Courier New', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
  word-break: break-all;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.copy-button {
  background: #007bff;
  border: none;
  border-radius: 4px;
  color: white;
  padding: 0.375rem 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  box-sizing: border-box;
}

.copy-button:hover {
  background: #0056b3;
}

.copy-button.copy-success,
.copy-all-button.copy-success {
  background: #28a745 !important;
  color: white !important;
  border-color: #28a745;
}

.copy-button.copy-failed,
.copy-all-button.copy-failed {
  background: #dc3545 !important;
  color: white !important;
}

.copy-textarea-hidden {
  position: fixed !important;
  left: -9999px !important;
  top: -9999px !important;
}

.copy-button:active {
  transform: translateY(1px);
}

/* Additional MFA styles */
.authenticator-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.authenticator-description {
  margin: 1rem 0;
  text-align: center;
  color: #666;
}


.configure-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
}

.configure-description {
  margin: 1rem auto;
  text-align: center;
  color: #666;
  max-width: 600px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.configure-instructions {
  margin: 1rem auto;
  padding: 1rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 600px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}


.verification-section {
  margin: 2rem auto;
  text-align: center;
  max-width: 600px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}


.recovery-description {
  margin: 1rem auto;
  text-align: center;
  color: #666;
  max-width: 600px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.recovery-instructions {
  margin: 1rem auto 0.5rem auto;
  padding: 1rem;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  color: #856404;
  max-width: 600px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.recovery-note {
  font-size: 0.9rem;
  color: #666;
  margin: 1rem 0;
  text-align: center;
}


.recovery-codes-container {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem auto;
  text-align: center;
  max-width: 600px;
}


/* Change pages */
.change-mfa-page {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.change-phone-page {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.current-info {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 1rem;
  margin: 1rem 0;
}

.enter-mfa-code-page {
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.complete-registration-page {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.confirm-email-page {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.create-recovery-codes-page {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.recovery-create-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.recovery-create-description {
  margin: 1rem 0 2rem 0;
  color: #666;
}

.authenticator-success-page {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.success-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.recovery-code-list-page {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 1rem;
}


.danger-btn {
  background-color: #dc3545 !important;
  color: #fff !important;
  border: none !important;
}

.danger-btn:hover {
  background-color: #c82333 !important;
}

/* Trusted devices */
.trusted-devices-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.trusted-device-header {
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 0.75rem;
}

/* Collapsible sections */
.collapsible-header {
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s ease;
}

.collapsible-header:hover {
  color: #495057;
}

.collapsible-header:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

.collapse-icon {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
  color: #6c757d;
}

.collapsible-header.collapsed .collapse-icon {
  transform: rotate(0deg);
}

.collapsible-content {
  max-height: 5000px;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}

.collapsible-content.collapsed {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
}

.trusted-device-content {
  flex: 1;
  min-width: 0;
}

.trusted-device-empty {
  text-align: center;
  padding: 2rem 0;
  color: #6c757d;
  font-size: 0.9375rem;
}

.trusted-device-item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1.25rem 0;
  background: transparent;
  border-bottom: 1px solid #f0f0f0;
  gap: 1.5rem;
}

.trusted-device-item .trusted-device-content {
  flex: 1;
  min-width: 0;
}

.trusted-device-item form {
  margin-left: auto;
  flex-shrink: 0;
}

.trusted-device-item:last-child {
  border-bottom: none;
}

.trusted-device-name {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
  margin-bottom: 0.25rem;
}

.trusted-device-ip {
  color: #6c757d;
  font-size: 0.8125rem;
  margin-bottom: 0.125rem;
}

.trusted-device-time {
  color: #6c757d;
  font-size: 0.8125rem;
}


.trusted-device-remove-all {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
}


.trusted-device-card {
  background: transparent;
  border: none;
  padding: 0;
  margin: 2.5rem 0;
}

/* External Accounts Styles */
.external-accounts-list {
  margin: 1rem 0;
}

.external-account-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  margin: 0.5rem 0;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  gap: 1rem;
}

.external-account-info {
  flex: 1;
}

.external-account-name {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  margin: 0;
}

/* MFA Options and Providers */
.mfa-option-container {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 0.75rem 1.25rem 1rem 1.25rem;
  margin: 0.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mfa-options-section {
  margin: 0;
}

h2.mfa-section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem 0 !important;
  color: #555;
}

.mfa-authenticator-section {
  margin: 0;
}

.mfa-authenticator-section .input-group {
  margin-bottom: 0.75rem;
}

.provider-detail {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 0.125rem;
}

/* MFA Login page specific */
#mfa-page .page-description {
  max-width: 400px;
  margin-bottom: 0.5rem;
}

#mfa-page .remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 0;
  border: none;
}

#mfa-page .remember-me label {
  font-size: 0.9375rem;
  color: #555;
  cursor: pointer;
  margin: 0;
}

#mfa-page .forgot-password {
  display: block;
  text-align: center;
  font-size: 0.875rem;
  color: #0066cc;
  margin-bottom: 1rem;
}

#mfa-page .forgot-password:hover {
  text-decoration: underline;
}

#mfa-page .link-button {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #0066cc;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.02em;
}

#mfa-page .link-button:hover {
  text-decoration: underline;
}

/* Message components */
.message-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.message-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.message-text {
  flex: 1;
}

/* Configure section */
.configure-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
}

/* Settings sections */
.settings-section {
  margin: 1rem 0;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 6px;
}

.mfa-settings {
  margin: 3rem 0 2rem 0;
}

.mfa-settings h2 {
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 0.75rem;
}

.mfa-settings-section {
  margin: 1.5rem 0;
  padding: 0;
  background: transparent;
  border: none;
}

.mfa-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
}

.mfa-devices {
  margin: 1.5rem 0 0 0;
}

.mfa-enabled h2 {
  color: #28a745;
}

.mfa-disabled h2 {
  color: #dc3545;
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.status-header h2 {
  margin: 0;
  font-size: 1.125rem;
}

.status-item {
  background: transparent;
  padding: 0;
  margin: 0;
  border: none;
}

/* Profile links */
.profile-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.profile-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  padding: 1rem 0;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.profile-link-card:hover {
  background: transparent;
  text-decoration: none;
  color: #000;
}

.profile-link-card i {
  color: #666;
  transition: transform 0.2s ease;
}

.profile-link-card:hover i {
  color: #000;
  transform: translateX(3px);
}

.profile-link-text {
  font-weight: 500;
  color: inherit;
}

/* Metadata */
.metadata-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
}

.metadata-label {
  font-weight: 600;
  color: #333;
}

.metadata-value {
  color: #666;
}

/* Grants */
.grants-list {
  margin: 2rem 0;
}

.grant-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 1.5rem;
  margin: 1rem 0;
}

.grant-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.grant-logo {
  width: 48px;
  height: 48px;
  border-radius: 6px;
}

.grant-info {
  flex: 1;
}

.grant-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.grant-description {
  color: #666;
  font-size: 0.9rem;
}

.grant-details {
  margin: 1rem 0;
}

.grant-metadata {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 1rem;
}

.permissions-section {
  margin: 1rem 0;
}

.permissions-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.permissions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.permission-tag {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  color: #333;
}

.grant-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Welcome page styles */
.welcome-container {
  max-width: 900px;
  text-align: left;
  overflow: visible;
}

.welcome-page {
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.welcome-header {
  text-align: left;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
}

.welcome-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}

.welcome-title-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.usas-icon {
  width: 80px !important;
  height: 80px !important;
  max-width: 80px !important;
  max-height: 80px !important;
  flex-shrink: 0;
}

.welcome-title h1 {
  font-size: 2.25rem;
  font-weight: 500;
  color: #333;
  margin: 0;
  line-height: 1.2;
}

.version-info {
  color: #666;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  background: #f5f5f5;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  white-space: nowrap;
  flex-shrink: 0;
}

.login-section {
  margin: 1.5rem 0;
  text-align: center;
}

.welcome-page ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.welcome-page li {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  position: relative;
  padding-left: 2rem;
  color: #333;
}

.welcome-page li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #333;
  font-weight: bold;
  font-size: 1.2rem;
}

.welcome-page a {
  color: #1976d2;
  text-decoration: underline;
  font-weight: 500;
  transition: all 0.2s ease;
}

.welcome-page a:hover {
  color: #333;
  background-color: rgba(0, 0, 0, 0.02);
  text-decoration: underline;
}

/* ================================= */
/* ACCOUNT LAYOUT WITH SIDEBAR */
/* ================================= */

.account-layout {
  display: flex;
  gap: 2rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.account-sidebar {
  width: 280px;
  min-width: 280px;
  flex-shrink: 0;
  border-right: 1px solid #e5e7eb;
  padding-right: 2rem;
}

.account-sidebar-header {
  padding: 1rem 0;
  margin-bottom: 1rem;
}

.account-sidebar-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.account-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.account-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.account-nav-link:hover {
  background: #f5f5f5;
  color: #000;
  text-decoration: none;
}

.account-nav-link.active {
  background: #f8f9fa;
  color: #0066cc;
  border-left: 3px solid #0066cc;
  padding-left: calc(1rem - 3px);
}

.account-nav-link.active:hover {
  background: #e9ecef;
  color: #0066cc;
}

.account-nav-link i {
  width: 20px;
  text-align: center;
  font-size: 0.9rem;
}

.account-content {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 1rem;
}

/* Consistent max-width for all pages - professional and readable */
.account-content .form-container {
  max-width: 800px;
  margin: 0;
  padding: 2rem;
  background: transparent;
  width: 100%;
  box-sizing: border-box;
}

/* Wider layout for data-heavy pages with tables and lists */
#diagnostics-page .form-container,
#grants-page .form-container,
#external-accounts-page .form-container {
  max-width: 1000px;
}

/* Trusted devices page - moderate width */
#trusted-devices-page .form-container {
  max-width: 900px;
}

/* Authenticator pages - narrower for better readability */
#authenticator-start-page .form-container,
#new-recovery-codes-page .form-container,
#configure-device-page .form-container {
  max-width: 500px;
}

.account-content .form-header {
  margin-bottom: 1.5rem;
  padding-bottom: 0;
}

/* Consistent header styling for all profile/account pages */
.account-content h1,
.form-container h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
  line-height: 1.3;
  text-align: center;
}

.account-content h2,
.form-container h2 {
  font-size: 1.125rem;
  font-weight: 500;
  color: #4a5568;
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
}

/* Page description/subtitle text */
.page-description,
.subheading,
.form-container > p {
  font-size: 0.9375rem;
  color: #6c757d;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  text-align: center;
}

@media (min-width: 480px) {
  .page-description,
  .subheading,
  .form-container > p {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Allow subheading to use full width on wide-content pages */
.wide-content .subheading {
  max-width: 100%;
}

/* Content alignment - left aligned for forms and content */
.account-content .input-group,
.account-content fieldset,
.account-content form,
.account-content .form-check,
.account-content .signup-cta,
.form-container .input-group,
.form-container fieldset,
.form-container form,
.form-container .form-check {
  text-align: left;
}

/* Buttons should be centered within their container */
.signup-cta {
  text-align: center;
}

/*
 * Current Info - Container for label + highlighted value pairs
 * Usage: <div class="current-info">
 *          <span class="current-info-label">Label:</span>
 *          <span class="highlighted-value">value</span>
 *        </div>
 */
.current-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
  margin-bottom: 1.5rem;
  width: 100%;
}

.current-info-label {
  font-size: 0.875rem;
  font-weight: 400;
  color: #666;
}

.current-info .highlighted-value {
  word-break: break-word;
}

/*
 * Highlighted Value - Generic class for displaying emphasized data
 * Use for: current email/phone, verification targets, important values
 */
.highlighted-value,
span.highlighted-value {
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  color: #2c3e50 !important;
}

/* Block-level highlighted value (for standalone usage with strong) */
p.highlighted-value {
  text-align: left !important;
  font-size: 1.125rem !important;
  font-weight: 400 !important;
  margin-bottom: 1.5rem !important;
  color: #555 !important;
  width: 100%;
}

p.highlighted-value strong {
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  color: #2c3e50 !important;
}

/* Centered variant for confirmation pages */
.highlighted-value.text-center,
p.highlighted-value.text-center {
  text-align: center !important;
}

@media (min-width: 480px) {
  .current-info,
  p.highlighted-value {
    max-width: 420px; /* Match input-group on larger screens */
    margin-left: auto;
    margin-right: auto;
  }
}

/* Remove/delete form styling */
.remove-form {
  margin-top: 1rem;
  text-align: center;
}

.btn.danger-link {
  color: #dc3545;
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
}

.btn.danger-link:hover {
  color: #a71d2a;
  text-decoration: underline;
}

/* ================================= */
/* 6.5. EXTERNAL LOGINS PAGE */
/* ================================= */

/* Providers list container */
.providers-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Individual provider item */
.provider-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.provider-item:hover {
  border-color: #d0d0d0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Provider info section (icon + name) */
.provider-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.provider-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

.provider-name {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
}

/* Toggle switch styling */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 26px;
  transition: background-color 0.3s ease;
}

.toggle-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #0d6efd;
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}

.toggle-switch input:focus + .toggle-slider {
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

/* No providers message */
.no-providers-message {
  text-align: center;
  color: #666;
  padding: 2rem;
  font-style: italic;
}

/* ================================= */
/* 7. RESPONSIVE DESIGN */
/* ================================= */

@media (max-width: 950px) {
  .container {
    padding: 1rem;
  }

  .account-container {
    padding: 1rem;
  }

  .form-container {
    max-width: 100%;
    padding: 1rem;
    margin: 1rem auto;
  }

  .account-layout {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .account-sidebar {
    width: 100%;
  }

  .account-sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .account-nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  .account-content .form-container {
    padding: 1rem;
  }
}

@media (max-width: 950px) and (min-width: 769px) {
  .social-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-bar {
    min-height: 48px;
    height: auto;
  }

  .header-container {
    padding: 0 1rem;
  }

  .header-logo-icon {
    height: 24px;
  }

  .header-logo-text {
    font-size: 1rem;
  }

  .header-user .dropdown-toggle {
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
  }

  .form-container {
    margin: 1rem auto;
    padding: 1.5rem;
    max-width: 95%;
  }

  .account-setting-content .form-container {
    width: 95%;
    padding: 1.5rem;
  }

  .container > .account-setting-content {
    padding: 1rem;
  }

  h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .device-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .device-status {
    justify-content: flex-start;
    width: 100%;
  }

  .social-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .social-button {
    padding: 0.875rem 1rem;
  }

  .social-button-text {
    font-size: 0.85rem;
  }

  .social-buttons:has(.social-button:nth-child(3):last-child),
  .social-buttons:has(.social-button:nth-child(5):last-child) {
    grid-template-columns: repeat(2, 1fr);
  }

  .social-buttons:has(.social-button:nth-child(5):last-child) .social-button:nth-child(n+4) {
    grid-column: auto;
    max-width: 100%;
  }

  /* Button stacking */
  .signup-cta {
    gap: 1rem;
  }

  .btn {
    width: 100%;
  }

  .mfa-provider-options {
    gap: 0.75rem;
  }

  .status-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .status-action-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .grant-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .grant-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .grant-metadata {
    flex-direction: column;
    gap: 0.25rem;
  }

  .trusted-device-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

}

@media (max-width: 480px) {
  .header-bar {
    min-height: 48px;
    height: auto;
  }

  .header-container {
    padding: 0 0.75rem;
  }

  .header-logo-text {
    font-size: 1.25rem;
  }

  .header-user .dropdown-toggle {
    padding: 0.25rem 0.5rem;
  }
}

/* Hide logo text only on very small screens */
@media (max-width: 360px) {
  .header-logo-text {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0.75rem;
  }

  .account-container {
    padding: 0.75rem;
  }

  .form-container {
    padding: 1rem;
    margin: 1rem auto;
    max-width: 100%;
  }

  .social-buttons {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* Button stacking with full width */
  .signup-cta {
    width: 100%;
  }

  .btn {
    width: 100%;
    font-size: 0.9rem;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0.5rem;
  }

  .account-container {
    padding: 0.5rem;
  }

  .form-container {
    padding: 0.875rem;
    margin: 0.5rem auto;
  }

  .input-group input {
    padding: 0.7rem 0.65rem;
    font-size: 1rem;
  }

  .btn {
    height: 44px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .recovery-code {
    min-width: auto;
    font-size: 0.75rem;
  }
}

/* Welcome page responsive styles */
@media (max-width: 768px) {
  .welcome-container {
    max-width: 100%;
    margin: 1rem auto;
    padding: 1rem;
  }

  .welcome-title {
    flex-direction: column;
    gap: 1rem;
  }

  .welcome-title-left {
    gap: 1rem;
  }

  .welcome-title h1 {
    font-size: 1.75rem;
  }

  .welcome-title .logo {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .welcome-container {
    margin: 0.5rem;
    padding: 1rem;
  }

  .welcome-title {
    gap: 0.75rem;
  }

  .welcome-title-left {
    gap: 0.75rem;
  }

  .welcome-title h1 {
    font-size: 1.5rem;
  }

  .version-info {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }

  .login-section {
    margin: 2rem 0;
  }

  .welcome-page li {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    padding-left: 1.25rem;
  }

  .welcome-page li::before {
    font-size: 1rem;
  }
}

/* ================================= */
/* 8. UTILITY CLASSES */
/* ================================= */

/* Links */
a {
  color: #1976d2;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  text-decoration: underline;
  color: #1565c0;
}

/* Link buttons */
.link-button {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  color: #1976d2;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  font-weight: 500;
  text-transform: uppercase;
  position: relative;
  transition: all 0.2s ease;
  padding: 0.5rem;
  margin: 0 auto;
  border-radius: 4px;
}

.link-button:hover {
  color: #1565c0 !important;
  background-color: rgba(25, 118, 210, 0.08);
  text-decoration: underline;
}

/* Hide elements */
.grecaptcha-badge {
  visibility: hidden !important;
}

/* Valid/Invalid states */
.valid {
  color: green;
}

.invalid {
  color: #da172f;
}

/* Password rules visualizer */
.password-rules {
  font-size: 0.75rem;
  margin: 0.25rem 0 0 0.25rem;
  color: #424242;
}

.password-rules .rule:not(:first-child)::before {
  content: '|';
  margin: 0 0.25rem;
}

.password-rules .icon {
  display: inline-block;
  margin-right: 0.25em;
  font-weight: bold;
}

.password-rules .rule.valid {
  color: #2e7d32;
}

.password-rules .rule.invalid {
  color: #c62828;
}

/* Consent Page Styles */
#consent-page {
  max-width: 500px;
}

#consent-page .form-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

#consent-page .client-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
}

#consent-page .form-header h1 {
  font-size: 1.5rem;
  text-align: center;
}

#consent-page .page-description {
  text-align: center;
  margin-bottom: 1.5rem;
}

#consent-page .permissions-section {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

#consent-page .permissions-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}

#consent-page .permissions-title i {
  color: #666;
}

#consent-page .scope-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#consent-page .scope-item {
  padding: 0.5rem;
  background: white;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

#consent-page .scope-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  margin: 0;
}

#consent-page .scope-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent-color);
  cursor: pointer;
}

#consent-page .scope-checkbox:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

#consent-page .scope-name {
  font-weight: 500;
  color: #333;
  flex: 1;
}

#consent-page .scope-required {
  font-size: 0.75rem;
  color: #666;
  font-weight: normal;
  font-style: italic;
  margin-left: 0.25rem;
}

#consent-page .scope-description {
  font-size: 0.8rem;
  color: #666;
  margin: 0.5rem 0 0 1.75rem;
  line-height: 1.4;
}

#consent-page .remember-consent {
  margin: 1.5rem 0;
}

#consent-page .checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500;
}

#consent-page .checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-color);
}

#consent-page .signup-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

#consent-page .signup-cta .btn {
  width: 100%;
}

#consent-page .client-link {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

#consent-page .client-link a {
  color: #666;
  text-decoration: none;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

#consent-page .client-link a:hover {
  color: var(--accent-color);
}

#consent-page .text-warning {
  color: #f57c00;
}

