html,body {
    height: 100%;
    margin: 0;
    padding: 0;
}

#selected-file {
    display: none;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Helvetica, sans-serif, Times New Roman, serif;
    color: white;
}

/* Authentication shell: explicit colors prevent inherited white text from disappearing on
   the light login surface. Tenant accents are scoped so other applications keep their branding. */
.auth-shell,
.auth-flow-page {
    min-height: 100%;
    color: #172033;
    background: linear-gradient(155deg, #f7f9fc 0%, #eef3f8 100%);
}

.auth-shell-header {
    color: #172033;
}

.auth-shell-brand {
    color: #172033;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.auth-shell-tagline,
.auth-shell-footer {
    color: #536174;
}

.auth-tenant-pulse .auth-shell-brand,
.auth-tenant-pulse .auth-brand {
    color: #172033;
}

.auth-tenant-pulse .auth-shell-brand::first-letter,
.auth-tenant-pulse .auth-brand {
    color: #5b21b6;
}

.auth-flow-main {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.auth-card {
    width: min(100%, 540px);
    padding: clamp(1.5rem, 5vw, 2.75rem);
    color: #172033;
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 1rem;
    box-shadow: 0 24px 70px rgba(26, 39, 57, 0.12);
}

.auth-card h1 {
    color: #172033;
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    line-height: 1.1;
}

.auth-brand {
    display: inline-block;
    margin-bottom: 1.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.auth-brand span {
    color: #172033;
}

.auth-eyebrow {
    margin-bottom: 0.5rem;
    color: #5b21b6;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-lead {
    color: #334155;
    font-size: 1.1rem;
}

.pending-mfa-notice {
    margin-top: 1.25rem;
    padding: 1rem;
    color: #27364a;
    background: #f2f6ff;
    border-left: 4px solid #5b21b6;
    border-radius: 0.5rem;
}

.auth-footnote {
    margin: 1.25rem 0 0;
    color: #536174;
    font-size: 0.88rem;
    line-height: 1.55;
}

.auth-shell :focus-visible,
.auth-flow-page :focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .auth-flow-main {
        align-items: start;
        padding: 0.75rem;
    }

    .auth-card {
        margin-top: 1rem;
        border-radius: 0.75rem;
    }
}

footer {
    margin-top: auto;
    background-color: #5D5C61;
    width: 100%;
}

#brand {
    width: 150px;
}

#brand a {
    color: white;
    text-align: center;
}

/* Scope large, full-width styling to content images only */
.content img, .article-image img {
    border-radius: 8px;
    height: 500px;
    width: 100%;
}

.active {
    margin: 0 auto;
}

.default-button {
    background-color: #C0C0C0;
}

.content {
    display: flex;
    flex: 1 0 auto;
}

.form-group > label {
    display: inline;
    font-weight: bold;
}

#dialog-box {
    display: none;
}

.removed {
    background-color: #C0C0C0;
    font-weight: normal;
}

h4, p, label, input, button {
    color: black;
}

.activation-message {
    max-width: 600px;
    margin: 10% auto;
    padding: 30px;
    background-color: #f0f8ff;
    border: 1px solid #cce7ff;
    border-radius: 10px;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.activation-message p {
    font-size: 1.1rem;
    color: #333;
}

.form-group.has-error {
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-group.has-error input {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220,53,69,.25);
}

span.help-block.fading-out,span.help-block.fading-out ul,span.help-block.fading-out li {
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    transition: opacity 1s, height 1s, margin 1s, padding 1s;
    pointer-events: none;
}

.form-group {
    display: flex;
    justify-content: center;
    align-items: center;
}

.panel-heading {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 16px 24px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.panel-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
    color: #212529;
}

.panel-body {
    padding: 24px;
    background: #fff;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.g-recaptcha {
    margin-bottom: 1rem;
}

.sidebar-narrow {
    max-width: 220px;
}

.sidebar .list-group-item {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.sidebar {
    max-width: 200px;
}

.narrow-form {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

body {
    font-size: 15px;
}
h3 {
    font-size: 20px;
}
h4 {
    font-size: 17px;
}
label {
    font-weight: 500;
}

.custom-tab {
font-weight: 500;
color: #555;
transition: background-color 0.2s ease, color 0.2s ease;
border-radius: 6px 6px 0 0;
margin-right: 6px;
}

.custom-tab:hover {
background-color: #f8f9fa;
color: #000;
}

.custom-tab.active {
background-color: #e9ecef;
border: 1px solid #dee2e6;
border-bottom: none;
color: #000;
font-weight: 600;
}

html {
scroll-behavior: smooth;
}

/* Offset scroll positioning for in-page anchor links so headers aren't hidden behind sticky navbars */
[id^="security-"],
#delete-account {
scroll-margin-top: 90px;
}


/* Center the avatar area */
.profile-image-wrap {
  display: flex;
  justify-content: center;  /* center horizontally */
  align-items: center;      /* center vertically if parent has height */
}

/* Circle frame */
.profile-image-container {
  width: 170px;   /* was 150px */
  height: 170px;  /* was 150px */
  overflow: hidden;
  border-radius: 50%;
}

/* Image crop rules */
.profile-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%; /* was 30% */
  display: block;
}

/* Larger screens — bigger avatar */
@media (min-width: 768px) {
  .profile-image-container {
    width: 200px;   /* was 180px */
    height: 200px;  /* was 180px */
  }
}

/* Small phones — smaller avatar */
@media (max-width: 480px) {
  .profile-image-container {
    width: 130px;   /* was 120px */
    height: 130px;  /* was 120px */
  }
}

/* Explicit image rule so the avatar stays circular and centered regardless of other global img rules */
.profile-image {
  object-fit: cover;
  object-position: 10% center; /* keep more headroom */
  border-radius: 50%;
}
