html, body {
	margin: 0;
	padding: 0;
	font-size: 12px;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: #f1faee;
	background: url('../img/background.png') no-repeat center center fixed;
	background-size: cover;
	height: auto; 
	overflow-x: hidden;
}

:root {
	--kc-footer-bottom: 5vh;
	--kc-footer-height: clamp(80px, 10vh, 96px);
	--kc-axians-blue: #005EB8;
	--kc-axians-gray: #000;
	--kc-axians-dark: #2b2b2b;
	--kc-header-height: 110px;
	--kc-header-gap: 60px;
	--kc-header-top: 2vh;
	--kc-safe-top: calc(var(--kc-header-top) + var(--kc-header-height) + var(--kc-header-gap));
	--kc-safe-bottom: calc(var(--kc-footer-bottom) + var(--kc-footer-height) + var(--kc-footer-gap));
}

body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
	padding-bottom: 0;
}

body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 33%;
	width: 34%;
	bottom: 0;
	background: rgba(20, 24, 44, 0.28);
	-webkit-backdrop-filter: blur(8px) saturate(135%) contrast(110%);
	backdrop-filter: blur(8px) saturate(135%) contrast(110%);
	z-index: 0;
	pointer-events: none;
}

body::after {
	content: "";
	position: fixed;
	top: -24px;
	bottom: -24px;
	left: 33%;
	width: 34%;
	background:
    linear-gradient(to bottom,
      rgba(0, 94, 184, 0.00),
      rgba(0, 94, 184, 0.85),
      rgba(0, 94, 184, 0.00)
    ) left / 2px 100% no-repeat,

    linear-gradient(to bottom,
      rgba(0, 94, 184, 0.00),
      rgba(0, 94, 184, 0.85),
      rgba(0, 94, 184, 0.00)
    ) right / 2px 100% no-repeat,

    linear-gradient(to right,
      rgba(0, 94, 184, 0.10),
      rgba(0, 94, 184, 0.00),
      rgba(0, 94, 184, 0.10)
    );
	filter: drop-shadow(0 0 10px rgba(0, 94, 184, 0.75)) drop-shadow(0 0 28px rgba(0, 94, 184, 0.35));
	opacity: 0.95;
	z-index: 0;
	pointer-events: none;
}

* {
	box-sizing: border-box;
}

.layout-container {
	position: relative;
	left: auto;
	/*top: var(--kc-safe-top);*/
	transform: none;
	width: 100%;
	margin: 0;
	z-index: 20;
	max-width: none;
	min-width: 175px;
	display: flex;
	flex: 1 0 auto;
	flex-direction: column;
	align-items: stretch;
	max-height: none;
	overflow: visible;
}

.kc-top-logo,
.kc-form,
.kc-bottom-logo {
	width: 100%;
	box-sizing: border-box;
}

.kc-header {
	position: fixed;
	left: 50%;
	top: var(--kc-header-top);
	height: var(--kc-header-height);
	width: calc(34% * 0.8); 
	transform: translateX(-50%);
	z-index: 50;
	display: flex;
	justify-content: center;
	align-items: center;
}

.kc-stage{
	position: relative;
	left: auto;
	top: auto;
	transform: none;
	margin: var(--kc-safe-top) auto 0;
	width: calc(34% * 0.8);
	display: flex;
	flex: 1 0 auto;
	overflow: visible; 
	overscroll-behavior: contain;
	padding-top: 0;
	justify-content: center;
	align-items: flex-start;
	padding-bottom: 2vh;
	z-index: 20;
	pointer-events: none;
}

.kc-stage .layout-container{
	overflow: hidden;
	max-width: none;
	width: 100%;
	display: flex;
	overflow: visible; 
	flex-direction: column;
	grid-template-rows: auto 1fr;
	min-height: 0;
	pointer-events: auto;
	max-height: calc(100vh - var(--kc-safe-top) - var(--kc-safe-bottom));
}

@media (max-height: 700px){
	.kc-stage .layout-container{
		transform-origin: top center;
		transform: scale(0.92);
		top: auto;
	}
}

@media (max-height: 620px){
	.kc-stage .layout-container{
		transform-origin: top center;
		transform: scale(0.86);
		top: auto;
	}
}

.kc-header-wrapper {
	font-size: 18px;
	color: #A20067;
	margin: 0;
	text-align: center;
	pointer-events: auto;
	width: 100%; 
}

.kc-header-wrapper img {
	max-height: 12vh;
	width: auto;
	display: block;
	margin: 0 auto;
}
.kc-header-wrapper a {
	font-size: 14px;
	color: #005eb8;
	text-align: center;
	text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.2em;
}

.kc-form-header {
	font-size: 12px;
	color: white;
	text-align: left;
	margin: -23px 0px 35px -5px;
	align-self: flex-start;
}

.kc-top-logo {
	flex: 0 0 auto;
	width: 100%;
	min-height: 86px;
	height: auto;
	overflow: hidden;
	position: relative;
	background:
    radial-gradient(120% 140% at 10% 10%,
      rgba(255,255,255,0.55) 0%,
      rgba(255,255,255,0.22) 55%,
      rgba(10,14,28,0.18) 100%
    ),
    linear-gradient(180deg,
      rgba(255,255,255,0.35) 0%,
      rgba(255,255,255,0.18) 60%,
      rgba(10,14,28,0.22) 100%
    );
	-webkit-backdrop-filter: blur(10px) saturate(140%) contrast(112%);
	backdrop-filter: blur(10px) saturate(140%) contrast(112%);
	border: 1px solid rgba(255,255,255,0.30);
	box-shadow:
    0 18px 40px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.22);
	display: flex;
	align-items: center;
	justify-content: center;
}

.kc-top-logo::after{
	content:"";
	position:absolute;
	left:0;
	right:0;
	bottom:0;
	height:2px;
	background: linear-gradient(
    90deg,
    rgba(0,94,184,0.00),
    rgba(0,94,184,0.55),
    rgba(215,1,144,0.35),
    rgba(0,94,184,0.55),
    rgba(0,94,184,0.00)
	);
	opacity: 0.65;
	pointer-events:none;
}

.kc-top-logo img {
	max-height: 100%;
	max-width: 100%;
	position: relative;
	z-index: 1;
	contain: layout paint;
	filter: drop-shadow(0 6px 10px rgba(0,0,0,0.18));
}

.kc-form {
	padding: 30px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	justify-content: flex-start;
	align-items: stretch;
	margin: 0 auto;
	overscroll-behavior: contain;
	background: linear-gradient(
    135deg,
    rgba(255,255,255,0.10) 0%,
    rgba(255,255,255,0.04) 35%,
    rgba(10,14,28,0.55) 100%
	) !important;

	border: 1px solid rgba(0,94,184,0.28);
	box-shadow:
    0 10px 30px rgba(0,0,0,0.45),
    0 0 18px rgba(0,94,184,0.18);
	-webkit-backdrop-filter: blur(14px) saturate(140%) contrast(112%);
	backdrop-filter: blur(14px) saturate(140%) contrast(112%);
	z-index: 1;
	width: 100%;
	max-width: 100%;
}

.kc-form-group.full-width {
	margin-top: auto;
	align-self: flex-end;
	width: 100%;
}

.kc-form-group {
	display: flex;
	flex-wrap: nowrap;
	min-width: 0;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	width: 100%;
    gap: 10px;
}

.kc-label {
	width: 100px;
	text-align: left;
	font-size: 13px;
	color: white;
	flex: 0 0 100px;
}

.kc-input {
	flex: 1 1 0;
	padding: 10px;
	font-size: 13px;
	border-radius: 0 !important; 
	border: 1px solid rgba(255,255,255,0.35);
	background: rgba(255,255,255,0.18);
	color: #111;
	margin-left: 0 !important;
	min-width: 0;
	width: 100%;
	max-width: 100%;
	-webkit-backdrop-filter: blur(8px) saturate(135%) contrast(110%);
	backdrop-filter: blur(8px) saturate(135%) contrast(110%);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
	outline: none;
}

.kc-input::placeholder{
	color: rgba(0,0,0,0.55);
}

.kc-input:focus{
	border-color: rgba(0,94,184,0.85);
	box-shadow:
    0 0 0 2px rgba(0,94,184,0.25),
    inset 0 0 0 1px rgba(255,255,255,0.10);
}

.kc-field-control {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.kc-field-control .kc-input {
	flex: 0 0 auto;
	width: 100%;
}

.kc-field-error {
	color: #fff;
	font-size: 12px;
	line-height: 1.35;
	padding: 6px 8px;
	border-left: 3px solid rgba(255, 120, 120, 0.75);
	background: rgba(146, 12, 12, 0.22);
}

.kc-input[aria-invalid="true"] {
	border-color: rgba(255, 120, 120, 0.75);
	box-shadow:
    0 0 0 1px rgba(255, 120, 120, 0.2),
    inset 0 0 0 1px rgba(255,255,255,0.08);
}

textarea.kc-input,
select.kc-input {
	min-height: 42px;
}

textarea.kc-input {
	resize: vertical;
}

.kc-button {
	width: 100%;
	padding: 12px;
	font-size: 14px;
	background: linear-gradient(to bottom, #FFFFFF 0%, #DEE0E2 100%);
	color: #333951;
	border: none;
	cursor: pointer;
	text-transform: uppercase;
	transition: color 0.3s ease, background 0.3s ease;
}

.kc-button:hover {
	background: linear-gradient(to top, #DEE0E2 0%, #FFFFFF 100%);
	color: #A20067;
}

.kc-idp-separator {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 18px 0 12px;
	color: rgba(255,255,255,0.8);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
}

.kc-idp-separator::before,
.kc-idp-separator::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.38), rgba(255,255,255,0.08));
}

.kc-idp-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

.kc-idp-button {
	display: block;
	text-align: center;
	text-decoration: none;
}

.kc-required {
	color: #ffffff;
	margin-left: 4px;
}

.kc-feedback-text {
	margin: 0 0 14px;
	padding: 10px 12px;
	border: 1px solid rgba(255,255,255,0.2);
	background: rgba(162, 0, 103, 0.18);
	color: #fff;
	font-size: 12px;
	line-height: 1.4;
}

.kc-feedback-text.error {
	background: rgba(146, 12, 12, 0.24);
	border-color: rgba(255, 120, 120, 0.35);
}

.kc-feedback-text.success {
	background: rgba(0, 94, 184, 0.24);
	border-color: rgba(120, 190, 255, 0.35);
}

.kc-info-text {
	color: #fff;
	font-size: 13px;
	line-height: 1.5;
	margin-bottom: 18px;
}

.kc-req-list {
	margin: 0 0 18px;
	padding-left: 18px;
	color: #fff;
	font-size: 13px;
	line-height: 1.5;
}

.kc-req-list li + li {
	margin-top: 6px;
}

.kc-link-button {
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

.kc-form-group-stack {
	display: block;
}

.kc-option-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

.kc-option-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid rgba(255,255,255,0.2);
	background: rgba(255,255,255,0.08);
	color: #fff;
}

.kc-steps {
	margin: 0 0 20px 18px;
	padding: 0;
	color: #fff;
	font-size: 13px;
	line-height: 1.5;
}

.kc-steps li {
	margin-bottom: 12px;
}

.kc-qr-code {
	display: block;
	max-width: 220px;
	width: 100%;
	height: auto;
	margin: 10px 0;
	background: #fff;
	padding: 8px;
}

.kc-checkbox-row {
	justify-content: flex-start;
}

.kc-inline-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	font-size: 13px;
}

.kc-form-options {
	text-align: right;
	margin-top: 5px;
}

.kc-login-options {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 15px;
	margin-bottom: 5px;
	width: 100%;
	font-size: 13px;
}

.kc-remember-me {
	color: #f1faee;
	display: flex;
	align-items: center;
}

.kc-remember-me input {
	margin-right: 5px;
}

.kc-forgot-password {
	color: #ccc;
	text-decoration: underline;
	font-size: 13px;
}

.kc-forgot-password:hover {
	color: #A20067;
}

.kc-error {
	background-color: #A20067;
	background-image: none;
	color: white;
	text-align: center;
	font-size: 22px;
	padding: 40px;
	border-radius: 0 0 10px 10px;
	min-height: 150px;
    display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

.kc-error-message {
	text-align: center;
	font-size: 16px;
	font-weight: bold;
	padding: 30px 10px;
	color: white;
}

.kc-footer {
	margin: 0; 
	position: relative;
	left: 0;
	right: 0;
	bottom: var(--kc-footer-bottom);
	transform: none;
	z-index: 1;
	background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.00) 0%,
    rgba(255, 255, 255, 0.62) 15%,
    rgba(255, 255, 255, 0.62) 85%,
    rgba(255, 255, 255, 0.00) 100%
	);
	padding: 16px 0;
	min-height: var(--kc-footer-height);
	display: flex;
	align-items: flex-start;
}

.kc-footer * {
	pointer-events: auto;
}

.kc-footer-inner {
	width: min(1200px, 92vw);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding-top: 6px;
}

.kc-footer-text{
	color: #000;
}

.kc-footer-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.kc-footer-row-top {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	column-gap: 16px;
   margin-top: 0;
}

.kc-footer-col-left  { justify-self: start; padding-left: 10px; }
.kc-footer-col-center{ 
	justify-self: center; 
	text-align: center; 
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}
.kc-footer-col-right { 
	justify-self: end; 
	text-align: left; 
}

.kc-footer-underscore{
	color: #D70190;
	font-weight: 900;
}

.kc-footer-righttext{
	color: #005eb8; 
	font-size: 12px;
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: 0.2px;
	text-transform: none;
}

.kc-footer-righttext-country{
	margin-top: 2px;
	font-weight: 800;
}

.kc-footer-logo {
	position: absolute;
	left: 0;
	display: flex;
	align-items: center;
}

.kc-footer-logo img {
	height: 28px;
	width: auto;
}

.kc-footer-row-links {
	margin-top: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.kc-footer-link {
	font-size: 10px;
	color: #005eb8;
	text-transform: uppercase;
	letter-spacing: 3px;
	line-height: 1.2em;
	text-decoration: none;
	transition: color 0.3s ease;
}

.kc-footer-link:hover {
	color: #A20067;
}

.kc-footer-separator {
	color: #A20067;
}

.dps-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	display: none;
	z-index: 50;
}

.dps-modal.open {
	display: flex;
}

body.dps-open {
	overflow: hidden;
}

.dps-modal .layout-container {
	flex: 0 0 auto;
	width: 34%;
	max-width: none;
	height: 100vh; 
	max-height: 100vh;
	margin: 0 auto;
	overflow: auto;
	display: flex;
	flex-direction: column;
	max-height: calc(
    100vh
    - var(--kc-footer-bottom)
    - var(--kc-footer-gap)
    - var(--kc-footer-height)
    - 5vh
	);
}

.dps-modal .kc-form.dps-content {
	flex: 1;
}

.docx-table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
	font-size: 14px;
}

.docx-table th,
.docx-table td {
	border: 1px solid rgba(255, 255, 255, 0.35);
	padding: 8px 12px;
	vertical-align: top;
}

.docx-table thead th {
	background: rgba(255, 255, 255, 0.15);
	font-weight: bold;
	text-align: center;
	color: #fff;
}

.docx-table tbody td:first-child {
	width: 35%;
}


.docx-table tbody tr:nth-child(even) {
	background: rgba(255, 255, 255, 0.05);
}

.kc-footer-brand{
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
	text-decoration: none;
	transform: translateX(+88px);
}

@media (max-width: 900px){
	.kc-footer-col-left{ padding-left: 12px; }
	.kc-footer-brand{ transform: translateX(-10px); }
}

.kc-footer-brand-logo{
	height: 34px;
	width: auto;
}

.kc-footer-brand-text{
	margin-left: 0;                
	text-align: center;
}

.kc-footer-brand-claim {
	font-size: 10px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	white-space: nowrap;
	text-align: center;
}

.kc-claim-muted {
	color: var(--kc-axians-gray);
	font-weight: 700;
}

.kc-claim-accent {
	color: var(--kc-axians-blue);
	font-weight: 800;
}

.kc-footer-brand-url {
	margin-top: 3px;
	font-size: 10px;
	color: var(--kc-axians-dark);
	white-space: nowrap;
}

/* Narrow layouts only: preserve the existing desktop presentation. */
@media (max-width: 900px) {
  html, body {
    font-size: 16px;
    height: auto;
  }

  body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }

  body::before, body::after {
    left: 0;
    width: 100%;
  }

  .kc-header {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    transform: none;
    padding: 20px 16px;
    flex: 0 0 auto;
  }

  .kc-header-wrapper {
    width: 100%;
    margin: 0;
  }

  .kc-header-wrapper img {
    width: auto;
    max-width: min(240px, 100%);
    height: auto;
    max-height: 72px;
    object-fit: contain;
  }

  .kc-stage {
    width: calc(100% - 32px);
    max-width: 560px;
    margin: 0 auto 24px;
    padding: 0;
    flex: 0 0 auto;
  }

  .layout-container {
    width: calc(100% - 32px);
    max-width: 560px;
    min-width: 0;
    margin: 0 auto 24px;
    max-height: none;
    overflow: visible;
    transform: none;
    flex: 0 0 auto;
  }

  .kc-stage .layout-container {
    width: 100%;
    margin: 0;
    max-height: none;
    transform: none;
    overflow: visible;
  }

  .kc-top-logo {
    height: 100px;
    min-height: 0;
    flex: 0 0 auto;
  }

  .kc-top-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
  }

  .kc-form {
    padding: 20px;
    min-width: 0;
    justify-content: flex-start;
    overflow-wrap: anywhere;
  }

  .kc-form-header {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.4;
  }

  .kc-form-group {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .kc-label {
    width: 100%;
    flex: 0 0 auto;
    font-size: 16px;
  }

  .kc-input, .kc-field-control {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
  }

  .kc-input, .kc-button {
    min-height: 44px;
    font-size: 16px;
  }

  .kc-button {
    display: block;
    box-sizing: border-box;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .kc-field-error, .kc-feedback-text, .kc-info-text {
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .kc-login-options {
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 16px;
    font-size: 16px;
  }

  .kc-remember-me label, .kc-forgot-password {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 16px;
  }

  .kc-remember-me input {
    width: 20px;
    height: 20px;
  }

  .kc-footer {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    min-height: 0;
    margin: auto 0 0;
    padding: 20px 16px;
    padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
    flex: 0 0 auto;
    font-size: 12px;
  }

  .kc-footer-inner {
    width: 100%;
    min-width: 0;
    padding: 0;
  }

  .kc-footer-row-top {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .kc-footer-row {
    flex-wrap: wrap;
    text-align: center;
  }

  .kc-footer-col-left, .kc-footer-col-center, .kc-footer-col-right {
    padding: 0;
    min-width: 0;
    text-align: center;
  }

  .kc-footer-brand {
    transform: none;
  }

  .kc-footer-brand-claim, .kc-footer-brand-url {
    white-space: normal;
  }

  .kc-footer-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 12px;
    letter-spacing: 1px;
  }

  .kc-fixed-corner-logo {
    position: static;
    margin: 0 auto 16px;
    transform: none;
  }

  .kc-fixed-corner-logo img {
    width: 120px;
    max-width: 100%;
    height: auto;
  }

  .dps-modal {
    z-index: 100;
  }

  .dps-modal .layout-container {
    flex: 0 0 auto;
    width: 100%;
    max-width: 600px;
    min-width: 0;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    margin: 0 auto;
    overflow: auto;
    overscroll-behavior: contain;
    transform: none;
  }

  .dps-modal .kc-form.dps-content {
    flex: 1 0 auto;
    padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
  }

  .dps-content h1 {
    font-size: 24px;
    overflow-wrap: anywhere;
  }

  .dps-content h2 {
    font-size: 20px;
  }

  .docx-table {
    table-layout: fixed;
    overflow-wrap: anywhere;
    font-size: 14px;
  }

  .docx-table th, .docx-table td {
    padding: 8px 6px;
  }

  .dps-actions {
    margin-top: 20px;
  }
}
