:root {
  --bg-page: #f8f9fa;
  --bg-card: #ffffff;
  --bg-panel: #e9ecef;
  --bg-input: #ffffff;
  
  --text-primary: #1a1a1a;
  --text-secondary: #39464E;
  --text-muted: #6c757d;
  
  --accent: #47CBCB;
  --accent-hover: #5DD5D5;
  
  --border: #dee2e6;
  --border-strong: #B8B8B8;
  
  --error: #dc3545;
  --success: #28a745;
  
  --font-family-base: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-family-heading: var(--font-family-base);
  --font-size-base: 16px;
  --font-size-sm: 14px;
  --font-size-xs: 12px;
  --font-size-footer-title: 12px;
  --font-size-footer-link: 15px;
  --font-size-footer-copy: 13px;
  --font-size-overlay-brand: 28px;
  --line-height-base: 1.5;
  --line-height-tight: 1.35;
  
  --radius-input: 0;
  --radius-button: 0;
  --radius-card: 0;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-button: 0 2px 8px rgba(71, 203, 203, 0.35);
  --shadow-button-hover: 0 6px 20px rgba(71, 203, 203, 0.45), 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-focus: 0 0 0 2px var(--accent);
  
  --header-bg: #ffffff;
  --header-text: var(--text-secondary);
  --header-border: var(--border);
  
  --section-color: var(--accent);
  --line-height: 4px;
  --line-width: 120px;
  --spacing-xl: 2rem;
  --spacing-md: 1rem;
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: auto;
  min-height: 100%;
}
body {
  margin: 0;
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text-primary);
  background-color: var(--bg-page);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body > .container-fluid {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
}

.page-header {
  margin: 0;
  background-color: var(--header-bg);
  padding: 12px 24px;
}
.page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.page-header-logo {
  display: block;
  transition: opacity 0.2s ease;
}
.page-header-logo:hover {
  opacity: 0.85;
}
.page-header-logo img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.page-header-logo-img--light {
  filter: invert(1) hue-rotate(180deg);
}

.page-header__language-switcher,
.page-header__language-switcher--desktop {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--header-text);
}
.page-header__language-switcher .page-header__language-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
  opacity: 0.9;
}
.page-header__language-switcher .page-header__language-icon path,
.page-header__language-switcher .page-header__language-icon circle,
.page-header__language-switcher .page-header__language-icon line {
  stroke: currentColor;
}
.page-header__language-switcher a {
  color: var(--header-text);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}
.page-header__language-switcher a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.page-header__language-switcher a:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: 2px;
}
.page-header__language-sep {
  color: var(--text-muted);
  user-select: none;
}

.page-header-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.page-header-lang a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}
.page-header-lang a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}
.page-header-lang a:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: 2px;
}
.page-header-lang-sep {
  color: var(--text-muted);
  user-select: none;
}

.page-footer {
  margin-top: 24px;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.page-footer-top {
  padding: 20px 24px 16px;
}
.page-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.page-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 20px;
}
.page-footer-brand {
  padding-right: 24px;
}
.page-footer-logo img {
  height: 32px;
  width: auto;
  display: block;
  margin-bottom: 8px;
}
.page-footer-contact {
  margin: 0;
  font-size: var(--font-size-footer-link);
  color: var(--text-secondary);
  line-height: 1.6;
}
.page-footer-contact a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}
.page-footer-contact a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.page-footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.page-footer-contact-item:last-child {
  margin-bottom: 0;
}
.page-footer-contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}
.page-footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.page-footer-social a {
  display: block;
  color: var(--text-secondary);
  transition: color 0.2s ease, opacity 0.2s ease;
}
.page-footer-social a:hover {
  color: var(--accent);
  opacity: 0.9;
}
.page-footer-social-icon {
  width: 24px;
  height: 24px;
  display: block;
}
.page-footer-title {
  display: inline-block;
  margin: 0 0 6px 0;
  font-size: var(--font-size-footer-title);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: underline;
  transition: color 0.2s ease;
}
a.page-footer-title {
  text-decoration: underline;
  color: var(--text-muted);
}
a.page-footer-title:hover {
  color: var(--accent);
}
.page-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.page-footer-col li {
  margin-bottom: 4px;
}
.page-footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--font-size-footer-link);
  transition: color 0.2s ease, text-decoration 0.2s ease;
}
.page-footer-col a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.page-footer-bottom {
  padding: 10px 24px;
  border-top: 1px solid var(--border);
}
.page-footer-copy {
  margin: 0;
  font-size: var(--font-size-footer-copy);
  color: var(--text-muted);
}
.page-footer-copy a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}
.page-footer-copy a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.page-footer-sep {
  margin: 0 8px;
  color: var(--border-strong);
}

.btn-primary,
.btn-primary:focus,
.btn-primary.focus,
.btn-primary:active,
.btn-primary.active,
a.btn-primary,
a.btn-primary:focus,
a.btn-primary:active {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  border-radius: var(--radius-button);
  box-shadow: var(--shadow-button);
  outline: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover,
a.btn-primary:hover {
  background-color: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-button-hover);
}
.btn-primary:active,
a.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-button);
}
.btn-primary:focus-visible,
a.btn-primary:focus-visible {
  box-shadow: var(--shadow-focus) !important;
}

.form-control {
  background-color: var(--bg-input) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-input);
}
.form-control::placeholder {
  color: var(--text-muted);
}
.form-control:focus {
  border-color: var(--accent) !important;
  outline: none !important;
  box-shadow: var(--shadow-focus) !important;
}
.form-control:focus-visible {
  box-shadow: var(--shadow-focus) !important;
}

.jumbotron {
  background-color: transparent !important;
}

.bg-login {
  background-color: var(--bg-page);
}
.bg-login .container-fluid {
  padding-left: 0;
  padding-right: 0;
}
.login-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.login-frame {
  margin-top: 32px;
  margin-bottom: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding-top: 80px;
  padding-bottom: 36px;
  background-color: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.jumbotron-login {
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: var(--bg-panel);
  position: relative;
  border-radius: var(--radius-input);
}
.jumbotron-login .jumbotron-arrow {
  margin-bottom: 32px;
}
.jumbotron-arrow:after {
  content: '';
  z-index: -1;
  left: 50%;
  top: 100%;
  position: absolute;
  margin-left: -12px;
  width: 0;
  height: 0;
  border-top: solid 12px var(--bg-panel);
  border-left: solid 12px transparent;
  border-right: solid 12px transparent;
}

.login-form-col {
  padding-left: 15px;
  padding-right: 15px;
  max-width: 85%;
}
.login-form-col .form-group {
  margin-left: 0;
  margin-right: 0;
}

.form-login {
  border-radius: var(--radius-input);
}
.form-login:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-focus);
}
.btn-block-login {
  border-radius: var(--radius-button);
  position: relative;
  z-index: 1;
}

h2.jumbotron-text {
  color: var(--text-primary) !important;
  margin-top: 20px;
  margin-bottom: 20px;
  font-family: var(--font-family-heading);
  font-size: var(--font-size-overlay-brand);
  font-weight: 700;
  white-space: nowrap;
}
@media (max-width: 480px) {
  h2.jumbotron-text {
    white-space: normal;
    font-size: 1.25rem;
  }
}
.jumbotron-subtitle {
  margin: 0 0 20px 0;
  color: var(--text-primary);
  font-family: var(--font-family-heading);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.2;
}
@media (max-width: 767px) {
  .jumbotron-subtitle {
    font-size: 0.85rem;
  }
}

.login-promo .promo-logo {
  margin-bottom: 24px;
}
.login-promo .promo-logo img,
.login-promo .promo-logo .b-col-logo__img {
  max-width: 420px;
  width: 100%;
  height: auto;
  display: block;
}

.login-promo .promo-heading {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
  font-family: var(--font-family-heading);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.2;
  position: relative;
  padding-bottom: calc(var(--spacing-md) + var(--line-height));
}
.login-promo .promo-heading.has-decorative-line::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: calc(var(--line-width) / 2);
  transform: translateX(-50%) skew(-30deg);
  width: var(--line-width);
  height: var(--line-height);
  background-color: var(--section-color);
}

.login-promo .promo-description {
  color: var(--text-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  margin: 0 0 var(--spacing-md);
}
.login-promo .promo-description:last-child {
  margin-bottom: 0;
}
.disc-list {
  list-style-type: disc;
}
.li-margin {
  padding-left: 2em;
}
.li-margin span {
  display: block;
  margin-left: -0.5em;
}

.login-links {
  margin-top: 24px;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
}
.login-links-item {
  margin: 0 0 12px;
  font-size: var(--font-size-sm);
  line-height: 1.6;
  color: var(--text-secondary);
}
.login-links-item:last-child {
  margin-bottom: 0;
}
.login-links-label {
  color: var(--text-secondary);
}
.login-links-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}
.login-links-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

h4.login-text-2,
a.login-text-2 {
  color: var(--text-secondary) !important;
}
a.login-text-2 {
  text-decoration: underline;
}
a.login-text-2:hover {
  color: var(--accent) !important;
}

.msg-login-error {
  color: var(--error);
}
.hidden {
  display: none;
}

.section-divider {
  position: relative;
  text-align: center;
  margin: 30px 0;
}
.section-divider hr {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 25px;
}
.section-divider .section-label {
  position: absolute;
  top: -0.7em;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  padding: 0 10px;
  color: var(--text-muted);
  font-weight: bold;
  z-index: 0;
}
.jumbotron-login .section-divider {
  margin: 15px 35px;
}
.jumbotron-login .section-divider hr {
  margin: 0;
}

.identity-provider {
  display: flex;
  align-items: center;
  justify-content: center;
}
.identity-provider a:hover img {
  transform: translateY(-2px);
  box-shadow: var(--shadow-button-hover);
  transition: transform 0.2s ease;
}

.login-text-area {
  margin-bottom: 25px;
  color: var(--text-secondary) !important;
}

.bg-registration {
  background-color: var(--bg-page);
}
.bg-registration .container-fluid {
  padding-top: 32px;
}

.registration-logo {
  height: 80px;
  padding: 15px;
  margin-top: 60px;
  max-width: 100%;
}

.registration-frame {
  margin-top: 32px;
  margin-bottom: 32px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px 24px 36px;
}

.registration-frame .registration-content {
  color: var(--text-secondary);
  padding: 0 15px;
}
.registration-frame .registration-content .form-group {
  margin-left: 0;
  margin-right: 0;
}
.registration-frame .registration-content label {
  font-size: var(--font-size-base);
  color: var(--text-primary);
  font-family: var(--font-family-base);
  display: block;
  margin-bottom: 6px;
}
.registration-heading {
  font-size: 18px;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 24px;
  font-family: var(--font-family-base);
}
.registration-frame .registration-content h4.registration-heading {
  font-size: 20px;
  margin-bottom: 28px;
}
.registration-frame .registration-content h5.registration-heading {
  font-size: 18px;
}

.registration-heading--responsive-lines {
  line-height: 1.4;
}
@media (max-width: 767px) {
  .registration-heading--responsive-lines {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
}

.registration-heading--success-one-line {
  line-height: 1.4;
  overflow-wrap: break-word;
}

.registration-checkbox-label {
  font-weight: normal;
}

.br-sm-only {
  display: none;
}
@media (max-width: 767px) {
  .br-sm-only {
    display: block;
  }
}

.registration-frame .registration-content .confirm-warning {
  margin-bottom: 5px;
  color: var(--error);
}
.registration-frame .registration-content .registration-error,
.registration-frame .registration-content #password-error,
.registration-frame .registration-content #confirm-password-error {
  color: var(--error);
  font-size: var(--font-size-sm);
  margin-top: 6px;
  margin-bottom: 0;
  padding: 0;
}
.registration-demo-link {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}
.registration-redirect {
  margin-bottom: 24px;
  font-size: var(--font-size-base);
  color: var(--text-secondary);
}
.registration-content input.form-control {
  border-radius: var(--radius-input);
}
.registration-content .btn.btn-primary {
  margin-top: 0;
  margin-bottom: 0;
}

.text-success {
  color: var(--success);
}
.registration-frame .registration-content a {
  color: var(--accent);
}
.registration-frame .registration-content a:hover {
  color: var(--accent-hover);
}

.row-back-to-login {
  margin-top: 20px;
}

.forgot-password-page .registration-frame.registration-frame--wide,
.reset-password-page .registration-frame.registration-frame--wide {
  margin-left: 0;
  margin-right: 0;
}
.reset-password-page .registration-frame.registration-frame--wide .registration-content {
  max-width: none;
}

/* Registration page: tighter spacing; same sticky-footer layout as other pages */
.bg-registration .registration-frame.registration-frame--wide {
  margin-left: 0;
  margin-right: 0;
}
.bg-registration .registration-frame.registration-frame--wide .registration-content {
  max-width: none;
}
.bg-registration .registration-frame {
  margin-top: 16px;
  margin-bottom: 16px;
  padding: 20px 24px 24px;
}
.bg-registration .registration-frame .registration-content .form-group {
  margin-bottom: 10px;
}
.bg-registration .registration-frame .registration-content h4.registration-heading {
  margin-bottom: 18px;
}
.bg-registration .registration-frame .registration-content .row-back-to-login {
  margin-top: 14px;
}
.bg-registration .registration-frame .registration-content .registration-demo-link {
  margin-top: 10px;
}

/* Error page: wider box, prominent button */
.error-page-frame.registration-frame--wide {
  margin-left: 0;
  margin-right: 0;
}
.error-page-content {
  padding: 24px 16px;
}
.error-page-heading {
  font-size: 22px;
  margin-bottom: 12px;
}
.error-page-message {
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.error-page-btn {
  min-width: 200px;
  display: inline-block;
  padding: 12px 24px;
  text-align: center;
}
.reset-password-page #password,
.reset-password-page #confirm-password {
  width: 100%;
  min-width: 48ch;
  box-sizing: border-box;
}
.btn-back-to-login {
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
}
a.btn-back-to-login:hover,
a.btn-back-to-login:focus {
  color: #fff !important;
  text-decoration: none;
}
a.btn-back-to-login:focus-visible {
  box-shadow: var(--shadow-focus);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: none;
}
button:focus-visible,
input:focus-visible {
  box-shadow: var(--shadow-focus);
}
a:focus-visible:not(.btn):not(.btn-primary) {
  box-shadow: var(--shadow-focus);
  border-radius: 2px;
}

@media (max-width: 767px) {
  .page-header {
    padding: 10px 16px;
  }
  .page-header-logo img {
    height: 36px;
  }
  .login-container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .login-form-col {
    max-width: 100%;
  }
  .login-frame {
    margin-top: 30px;
    margin-bottom: 30px;
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .login-promo {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
  }
  .login-promo .promo-logo img,
  .login-promo .promo-logo .b-col-logo__img {
    max-width: 280px;
  }
  .login-promo .promo-heading {
    font-size: 0.85rem;
    margin-bottom: var(--spacing-md);
  }
  .login-promo .promo-description {
    font-size: 0.9375rem;
  }
  .registration-logo {
    margin-top: 20px;
  }
  .registration-frame {
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 30px 16px 30px;
  }
  .registration-frame .registration-content {
    padding-left: 0;
    padding-right: 0;
  }
  .bg-registration .container-fluid {
    padding-top: 20px;
  }
  .page-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }
  .page-footer-brand {
    grid-column: 1 / -1;
  }
  .page-footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .page-footer-grid {
    grid-template-columns: 1fr;
  }
  .page-footer-contact {
    grid-column: 1;
  }
  .page-footer-col a,
  .page-footer-contact a {
    padding: 6px 0;
    display: inline-block;
    min-height: 44px;
    line-height: 32px;
  }
}
