/* Purpose: AuthUI stylesheet ported from philips-login-app design system */
/* Author: HSP Foundation Team */

@font-face {
  font-family: 'NeueFrutiger';
  src: url('../fonts/NeueFrutigerOne-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NeueFrutiger';
  src: url('../fonts/NeueFrutigerOne-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NeueFrutiger';
  src: url('../fonts/NeueFrutigerOne-Bold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NeueFrutiger';
  src: url('../fonts/NeueFrutigerOne-Heavy.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===================================================================
   Page & Layout — gradient background, centered card
   =================================================================== */

body {
  margin: 0;
  padding: 0;
  font-family: 'NeueFrutiger', Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.philips-overlay {
  background: linear-gradient(135deg, #0b4f93, #67b7dd);
  background: url('/images/bg-start.jpg') no-repeat center center / cover fixed;
  color: #11304a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.auth-main {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
}

/* ===================================================================
   White frosted card (from philips-login-app auth-shell)
   =================================================================== */

.auth-card {
  width: 600px;
  min-height: 600px;
  max-width: calc(100vw - 32px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #CAD2D8;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(6, 42, 76, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.auth-card-body {
  padding: 36px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ===================================================================
   Brand logo area
   =================================================================== */

.auth-brand {
  display: grid;
  place-items: center;
  margin: 16px auto 24px;
  flex-shrink: 0;
}

.auth-content {
  margin-top: auto;
  margin-bottom: auto;
}

/* ===================================================================
   Typography — dark text inside the card
   =================================================================== */

.auth-card p,
.auth-card strong,
.auth-card label,
.auth-card span,
.auth-card li,
.auth-card b,
.auth-card div {
  color: #11304a;
}

.auth-card a {
  color: #0072db;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.auth-card a:hover {
  color: #0061c2;
  text-decoration: underline;
}

.auth-card h1,
.auth-card title {
  font-size: 30px;
  text-align: center;
  color: #00126E;
  margin: 0 0 8px;
}

/* Page title elements (rendered as text by Pug title blocks) */
.auth-card p:first-of-type {
  color: #5f7385;
  font-size: 15.5px;
  line-height: 1.5;
  text-align: center;
}

/* ===================================================================
   Form elements
   =================================================================== */

fieldset {
  display: block;
  border: none;
  padding: 0;
  margin: 0;
}

.control-label.pt-label.pt-truncate {
  width: 100%;
  margin: 0 auto;
}

.control-label.pt-label.pt-truncate label {
  font-size: 14px;
  line-height: 1.2;
  margin-bottom: 6px !important;
}

.form-group.inner-addon.right-addon.container {
  padding: 0;
}

/* Text inputs */
input.pt-textbox {
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #d8e1e8;
  background: #ffffff;
  color: #11304a;
  padding: 0 14px;
  font-size: 15px;
  font-family: 'NeueFrutiger', Arial, Helvetica, sans-serif;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input.pt-textbox:focus {
  border-color: #0072db;
  box-shadow: 0 0 0 4px rgba(0, 114, 219, 0.14);
}

input.pt-textbox::placeholder {
  color: #8c9baa;
}

/* Generic input reset inside card */
.auth-card input {
  padding: 1px 14px;
  border-width: 1px;
  border-style: solid;
  border-color: #d8e1e8;
}

/* Hidden inputs should not show */
input[type="hidden"] {
  display: none;
}

/* ===================================================================
   Buttons — gradient style from philips-login-app
   =================================================================== */

.pt-buttonbase,
button.pt-buttonbase,
a.pt-buttonbase {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background-color: #0072db;
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 700;
  font-family: 'NeueFrutiger', Arial, Helvetica, sans-serif;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  line-height: 40px;
  padding: 0;
  margin-top: 16px;
  margin-bottom: 12px;
  box-shadow: 0 10px 24px rgba(0, 114, 219, 0.22);
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.1s ease;
}

.pt-buttonbase:hover,
button.pt-buttonbase:hover,
a.pt-buttonbase:hover {
  background-color: #0061c2;
  box-shadow: 0 12px 28px rgba(0, 114, 219, 0.32);
  color: #ffffff !important;
  text-decoration: none;
}

.pt-buttonbase:active,
button.pt-buttonbase:active,
a.pt-buttonbase:active {
  background-color: #0052a3;
  transform: scale(0.98);
}

.pt-buttonbase:disabled,
button.pt-buttonbase:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pt-buttonbase span {
  color: #ffffff !important;
}

a.pt-buttonbase {
  margin: 12px 0 0;
  padding: 0;
}

/* ===================================================================
   Error alerts — red banner with adjusted styling for card context
   =================================================================== */

.alert.alert-danger-red {
  background-color: #c62828 !important;
  border: none !important;
  border-radius: 12px;
  color: #ffffff !important;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  text-align: left;
}

.alert.alert-danger-red::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23ffffff' stroke-width='2' d='M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z'/%3E%3Cpath fill='%23ffffff' fill-rule='evenodd' d='M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18m1-5v2.005h-2V16zm0-9V6h-2v8h2z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.alert.alert-danger-red > p,
.alert.alert-danger-red .alert-content {
  flex: 1;
}

.alert.alert-danger-red p,
.alert.alert-danger-red strong,
.alert.alert-danger-red a {
  color: #ffffff !important;
  margin: 0 !important;
}

.alert.alert-danger-red p + p {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 4px !important;
}

.alert.alert-danger-red strong a {
  color: #ffffff !important;
  text-decoration: underline;
}

/* Success alerts */
.alert {
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: #eef6ff;
  border: 1px solid #d6e8ff;
  color: #24507a;
  text-align: center;
}

.alert p,
.alert strong,
.alert strong p {
  color: #24507a !important;
}

/* ===================================================================
   Password visibility toggle icons
   =================================================================== */

.inner-addon.right-addon {
  position: relative;
  margin-bottom: 16px;
}

i#showPswd,
i#showOPswd,
i#showCPswd,
i#showLPswd {
  margin-left: 5px;
  cursor: pointer;
  position: absolute;
  top: 50%;
  right: 14px;
  border: 0;
  transform: translate(0, -50%);
  color: #5f7385;
}

.right-addon input {
  padding-right: 40px;
}

/* ===================================================================
   Checkbox styling
   =================================================================== */

input.pt-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #0072db;
  cursor: pointer;
  flex-shrink: 0;
}

.auth-card .control-label label[for="RememberMe"] {
  font-size: 14px;
  color: #5f7385;
  font-weight: 500;
  cursor: pointer;
  margin: 0 !important;
  line-height: 1.4;
}

/* ===================================================================
   Radio button styling (verification pages)
   =================================================================== */

.radio-addon {
  text-align: left;
}

input[type="radio"].pt-textbox {
  width: auto !important;
  height: auto !important;
  border-radius: 50%;
  accent-color: #0072db;
}

label.radio-inline {
  font-size: 14px;
  color: #11304a;
  padding-left: 8px;
  letter-spacing: 0.5px;
  margin: 0 0 12px 0;
  line-height: 1.5;
  font-weight: 500;
}

/* ===================================================================
   Links inside the card
   =================================================================== */

.auth-card #forgot-password,
.auth-card #Send-verification,
.auth-card #loginpage {
  color: #0072db;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.auth-card #forgot-password:hover,
.auth-card #Send-verification:hover,
.auth-card #loginpage:hover {
  color: #0061c2;
  text-decoration: underline;
}

/* ===================================================================
   Password policy section
   =================================================================== */

.passwordPolicyMessage {
  text-align: left;
  padding: 16px;
  background: #f8f9fb;
  border-radius: 12px;
  border: 1px solid #e4e9ef;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: #11304a;
}

.passwordPolicyMessage b {
  color: #11304a;
  font-weight: 600;
}

.passwordPolicyRule {
  list-style-type: none;
  padding-inline-start: 0px;
}

.passwordPolicyRule li {
  color: #11304a;
  font-size: 14px;
  line-height: 1.8;
}

/* ===================================================================
   KBA (Knowledge-Based Authentication) section
   =================================================================== */

.kbaquestionsec {
  text-align: left;
  margin: 0 0 16px 0;
}

.kbaquestionsec label.kbaquestions {
  padding: 12px 0 4px;
  font-weight: 600;
  font-size: 14px;
  color: #11304a;
}

.kbaquestionsecinner {
  margin-bottom: 16px;
}

label.kbaquestions:first-letter {
  text-transform: capitalize;
}

a.btn.pt-buttonbase.kbgpagebtn-left {
  min-width: auto;
  float: left;
  width: 48%;
  margin: 0;
  background: transparent;
  border: 2px solid #0072db;
  color: #0072db !important;
  box-shadow: none;
}

a.btn.pt-buttonbase.kbgpagebtn-left:hover {
  background: #eef6ff;
  color: #0061c2 !important;
  border-color: #0061c2;
  box-shadow: none;
}

a.btn.pt-buttonbase.kbgpagebtn-left:active {
  background: #ddeeff;
  color: #0052a3 !important;
  border-color: #0052a3;
  box-shadow: none;
}

button.pt-buttonbase.kbgpagebtn-right {
  min-width: auto;
  float: right;
  width: 48%;
}

.kba-org {
  width: 100%;
  margin: 0 auto;
  line-height: 1.6;
  text-align: center;
}

.kba-org p {
  color: #11304a;
}

.kbaflowresnedbtn {
  display: none !important;
}

/* ===================================================================
   Resend / secondary buttons
   =================================================================== */

a.resendotpbtn {
  display: block;
  width: 100%;
  margin: 12px auto;
  padding: 0;
  font-size: 16px;
  line-height: 36px;
  height: 40px;
  border-radius: 999px;
  text-align: center;
  background: transparent;
  border: 2px solid #0072db;
  color: #0072db !important;
  box-shadow: none;
}

a.resendotpbtn:hover {
  background: #eef6ff;
  color: #0061c2 !important;
  border-color: #0061c2;
  box-shadow: none;
}

a.resendotpbtn:active {
  background: #ddeeff;
  color: #0052a3 !important;
  border-color: #0052a3;
  box-shadow: none;
}

a.resendcodebtn {
  display: none;
  width: 100%;
  margin: 12px auto;
  padding: 0;
  line-height: 36px;
  height: 40px;
  border-radius: 999px;
  text-align: center;
  background: transparent;
  border: 2px solid #0072db;
  color: #0072db !important;
  box-shadow: none;
}

a.resendcodebtn:hover {
  background: #eef6ff;
  color: #0061c2 !important;
  border-color: #0061c2;
  box-shadow: none;
}

a.resendcodebtn:active {
  background: #ddeeff;
  color: #0052a3 !important;
  border-color: #0052a3;
  box-shadow: none;
}

/* ===================================================================
   Post-activation & reset request pages
   =================================================================== */

a.btn.postactivationbtn {
  margin: 16px 0 0 0;
}

.postactivation {
  font-size: 14px;
  color: #11304a;
}

.resetreqpage p {
  margin-bottom: 4px;
  font-size: 15px;
  color: #11304a;
  line-height: 1.6;
}

a.backtologin {
  display: inline-block;
  margin: 16px 0 0;
  font-size: 14px;
  color: #0072db;
  font-weight: 600;
}

/* ===================================================================
   Message displays
   =================================================================== */

.message {
  color: #11304a;
  padding-bottom: 5px;
  text-align: center;
}

.container .message {
  margin-top: 16px;
  text-align: center;
}

.message p {
  color: #11304a !important;
}

/* ===================================================================
   OTP and verification-specific styles
   =================================================================== */

.inner-addon.right-addon.otpinputtype {
  margin-top: 16px;
  display: none;
}

p.emailladressmsg {
  display: none;
  width: 100%;
  margin: 4px auto 16px;
  line-height: 1.6;
  color: #11304a;
}

p.mobilenumbermsg {
  display: none;
  width: 100%;
  margin: 4px auto 16px;
  line-height: 1.6;
  color: #11304a;
}

p.mobileemailsent {
  display: none;
}

input#mobileOtpcode {
  margin: 0 auto 16px;
  display: none;
}

input#SendSms,
input#SendEmail {
  margin-left: 4px;
}

/* ===================================================================
   Help block (validation messages)
   =================================================================== */

.help-block {
  color: #c62828;
  background-color: transparent;
  margin-top: 4px;
  margin-bottom: 4px;
  font-size: 13px;
  padding: 0;
  width: 100%;
}

/* Inline field validation — matching hsp-theme kc-input-error / kc-field-error pattern */

input.pt-textbox.pt-input-error {
  border-color: #c62828;
  box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.1);
}

.pt-field-error {
  display: none;
  color: #c62828 !important;
  font-size: 13px;
  margin-top: 4px;
  margin-bottom: 8px;
}

/* ===================================================================
   Error page styling
   =================================================================== */

.auth-card h1 {
  font-size: 24px;
  color: #00126E;
  margin: 0 0 8px;
}

.auth-card h2 {
  font-size: 18px;
  color: #5f7385;
  margin: 0 0 16px;
}

.auth-card pre {
  background: #f8f9fb;
  border-radius: 12px;
  border: 1px solid #e4e9ef;
  padding: 16px;
  font-size: 13px;
  color: #11304a;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* ===================================================================
   Footer — horizontal bar, white text on gradient
   =================================================================== */

.auth-footer {
  width: 100%;
  padding: 20px 0 16px;
  text-align: center;
  overflow: visible;
}

.auth-footer .auth-footer-line {
  color: #ffffff !important;
  font-size: 13px;
  margin: 4px 0;
  line-height: 1.8;
}

.auth-footer .auth-footer-line a {
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 400;
}

.auth-footer .auth-footer-line a:hover {
  text-decoration: underline;
  color: #ffffff !important;
}

.auth-footer .auth-footer-line a:focus-visible {
  text-decoration: underline;
  outline: 2px solid white;
  outline-offset: 2px;
  border-radius: 2px;
}

.auth-footer-divider {
  color: rgba(255, 255, 255, 0.6);
  user-select: none;
  margin: 0 12px;
}

/* Language picker dropdown */

.auth-lang-picker {
  position: relative;
  display: inline-block;
}

.auth-lang-toggle {
  background: none;
  border: 0;
  padding: 0;
  color: #ffffff;
  font-size: 13px;
  font-family: 'NeueFrutiger', Arial, Helvetica, sans-serif;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
}

.auth-lang-toggle:hover {
  text-decoration: underline;
  color: #ffffff;
}

.auth-lang-toggle:focus-visible {
  text-decoration: underline;
  outline: 2px solid white;
  outline-offset: 2px;
  border-radius: 2px;
}

.auth-lang-menu {
  display: none;
  position: fixed;
  padding: 6px 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(6, 42, 76, 0.18);
  min-width: 160px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 100;
}

.auth-lang-menu li {
  display: block;
}

.auth-lang-menu a {
  display: block;
  width: 100%;
  padding: 8px 16px;
  color: #11304a !important;
  font-size: 13px;
  text-decoration: none;
  font-weight: 400;
}

.auth-lang-menu a:hover {
  background: #eef6ff;
  text-decoration: none;
}

.auth-lang-menu a:focus-visible {
  background: #eef6ff;
  box-shadow: inset 0 0 0 2px #0072db;
  outline: none;
}

.auth-lang-menu a[aria-current="true"] {
  font-weight: 700;
  color: #0072db !important;
}

/* ===================================================================
   Loading / preloader
   =================================================================== */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.99);
  z-index: 99999999;
  font-family: 'NeueFrutiger', Arial, Helvetica, sans-serif;
  height: 100%;
}

.status {
  z-index: 99999999;
  width: 250px;
  height: 250px;
  left: 50%;
  top: 60%;
  position: absolute;
  background-size: 32px 32px;
  background-repeat: no-repeat;
  background-position: center;
  margin: -125px 0 0 -125px;
  color: #333;
}

.status p {
  top: 60%;
}

.status em {
  font-size: 10px;
  display: block;
  font-style: normal;
}

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #0b4f93, #67b7dd);
  background: url('/images/bg-start.jpg') no-repeat center center / cover;
  text-align: center;
  z-index: 99999;
}

.loaderstatus {
  width: 100px;
  height: 100px;
  position: absolute;
  left: 50%;
  top: 50%;
  background-image: url("../../images/loader.gif");
  z-index: 9999;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  margin: -50px 0 0 -50px;
}

/* ===================================================================
   Utility classes
   =================================================================== */

.hidden {
  visibility: hidden;
  overflow: hidden;
  width: 0;
  height: 0;
}

.center-text {
  text-align: center;
}

.info {
  top: 50px !important;
}

.full-width {
  width: 100%;
}

/* ===================================================================
   Bootstrap container override inside card
   =================================================================== */

.auth-card .container {
  max-width: 100%;
  padding: 0;
}

.auth-card .col-md-12 {
  padding: 0;
}

/* ===================================================================
   Tooltip overrides for password pages
   =================================================================== */

.tooltip-inner {
  background-color: #c62828;
}

.tooltip > .tooltip-arrow {
  border-bottom-color: #c62828;
  border-top-color: #c62828;
}

/* ===================================================================
   Responsive — smaller screens
   =================================================================== */

@media only screen and (max-width: 520px) {
  .auth-card-body {
    padding: 28px 20px;
  }

  .auth-card {
    border-radius: 14px;
  }

  .auth-main {
    padding: 16px;
  }
}

/* ===================================================================
   Spacing helpers for br tags between form elements
   =================================================================== */

.auth-card br {
  display: none !important;
}

/* ===================================================================
   Language selector page
   =================================================================== */

.auth-card ul {
  list-style-type: none;
  padding: 0;
}

.auth-card h3 {
  font-size: 20px;
  color: #11304a;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ===================================================================
   Sec-inner addon (verification pages)
   =================================================================== */

.sec-inner.addon {
  width: 100%;
  margin: 0 auto;
}
