
@font-face {
  font-family: "RobotoMonoItalic";
  src: url("./fonts/RobotoMono-Italic-VariableFont_wght.ttf");
}

@font-face {
  font-family: "RobotoMono";
  src: url("./fonts/RobotoMono-VariableFont_wght.ttf");
}

@font-face {
  font-family: "NeueHaasGroteskRoman";
  src: url("./fonts/NeueHaasGroteskText-55Roman.otf") format("opentype");
}

@font-face {
  font-family: "NeueHaasGroteskItalic";
  src: url("./fonts/NeueHaasGroteskText-56Italic.otf") format("opentype");
}

@font-face {
  font-family: "NeueHaasGroteskMedium";
  src: url("./fonts/NeueHaasGroteskText-65Medium.otf") format("opentype");
}

@font-face {
  font-family: "NeueHaasGroteskMediumItalic";
  src: url("./fonts/NeueHaasGroteskText-66MediumItalic.otf") format("opentype");
}

@font-face {
  font-family: "NeueHaasGroteskBold";
  src: url("./fonts/NeueHaasGroteskText-75Bold.otf") format("opentype");
}

@font-face {
  font-family: "NeueHaasGroteskBoldItalic";
  src: url("./fonts/NeueHaasGroteskText-76BoldItalic.otf") format("opentype");
}

@font-face {
  font-family: "FoundersGroteskXBold";
  src: url("./fonts/FoundersGroteskX-Condensed-Bold.otf") format("opentype");
}

/* Make sure Edge does not show an extra eye icon for password fields */
input::-ms-reveal,
input::-ms-clear {
display: none;
}

.container {
  position: relative;
  flex: 1;
}

.container:hover .login-logo-img {
  opacity: 0.5;
}

.container:hover .middle {
  opacity: 1;
}

:root {
  --login-blue: #0061E0;
  --bs-warning-bg-subtle: #FFDD33;
  --bs-btn-bg: black;
  --Charcoal: #17181A;
  --Red: #D93209;
  --Yellow: #FFDD33;;
  --Cream-Disabled: rgba(252, 250, 247, 0.30);
  --Charcoal-Disabled: rgba(23, 24, 26, 0.30);
}

body {
  overflow-x: hidden;
}

/* Override Bootstrap .btn-primary with your branding */
.btn-primary {
    --bs-btn-color: #fff; /* text color */
    --bs-btn-bg: var(--Charcoal, #17181A); /* enabled background */
    --bs-btn-border-color: var(--Charcoal, #17181A);

    /* Hover / Active */
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--Red, #D93209);
    --bs-btn-hover-border-color: var(--Red, #D93209);

    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--Red, #D93209);
    --bs-btn-active-border-color: var(--Red, #D93209);

    /* Focus ring color */
    --bs-btn-focus-shadow-rgb: 217, 50, 9; /* matches Red (#D93209) */

    --bs-btn-disabled-color: var(--Charcoal-Disabled, rgba(23, 24, 26, 0.30));
    --bs-btn-disabled-bg: var(--Cream-Disabled, rgba(252, 250, 247, 0.30));
    --bs-btn-disabled-border-color: var(--Cream-Disabled, rgba(252, 250, 247, 0.30));
	font-family: NeueHaasGroteskRoman;
}

.btn-primary-input {
  --bs-btn-bg: var(--login-blue, #0061E0); /* enabled background */
}

/* Disabled state for .btn-primary */
.btn-primary:disabled,
.btn-primary.disabled,
.btn-primary[disabled] {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--Cream-Disabled, rgba(252, 250, 247, 0.30));
    --bs-btn-border-color: var(--Cream-Disabled, rgba(252, 250, 247, 0.30));

    opacity: 1; /* prevent Bootstrap from dimming it weirdly */
}

/* Disabled hover (Bootstrap normally prevents hover, but some browsers still apply it) */
.btn-primary:disabled:hover,
.btn-primary.disabled:hover,
.btn-primary[disabled]:hover {
    background: rgba(252, 250, 247, 0.45); /* slightly darker shade */
    border-color: rgba(252, 250, 247, 0.45);
}

.login-page {
  background-color: var(--login-blue);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.login-row {
  /*max-width: 1200px;*/
  margin: 0 auto;
  height: 75%;
}

/* Center card */
.login-card {
  /*background-color: rgba(0, 97, 224, 0.95);*/ /* slightly lighter than before */
  /*border-radius: 24px;*/
  /*padding: 2.5rem 3rem;*/
  width: 100%;
  max-width: 540px;
  /*box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);*/
}

/* Header block (logo + org name + hub title) */
.login-header {
  display: flex;
  align-items: center;
  text-align: left;
}

.login-logo-circle {
  /*width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;*/
}

.login-logo-img {
  width: 100%;
  max-width: 450px;
  height: auto;
  transition: .5s ease;
  backface-visibility: hidden;
  opacity: 1;
  display: block;
}

.login-org-name {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.login-hub-title {
  margin-top: 0.25rem;
  font-size: 1.5rem;
  font-weight: 500;
  opacity: 0.9;
  font-family: NeueHaasGroteskBold;
}

/* “Login” title (i18n header) */
.login-title {
  margin-top: 1.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: left;
}

/* Images */
.login-photo-wrapper {
  border-radius: 16px;
  overflow: hidden;
  /*max-width: 320px;*/
  /*align-self: center;*/
}

/* .container-fluid { */
  /* margin-left: -2rem !important; */
  /* margin-right: 2rem !important; */
/* } */

.login-photo-wrapper-left {
  margin-left: -5rem;
}

.login-photo-wrapper-right {
  margin-right: -5rem;
}

.login-photo {
  width: 100%;
  height: 85%;
  object-fit: cover;
}

/* Form labels & inputs */
.login-card .form-label.caption {
  font-size: 16px;
  line-height: 19.2px;
  color: #dbeafe;
  font-family: NeueHaasGroteskRoman;
}

.login-card .form-label.caption-password {
  font-size: 16px;
  line-height: 19.2px;
  color: #dbeafe;
  font-family: NeueHaasGroteskRoman;
}

.form-label {
  margin-bottom: 0rem !important;
}

.login-card .form-control {
  /*border-radius: 10px;*/
  font-size: 16px;
  line-height: 19.2px;
  flex: 1;
  background-color: #f9fafb;
  color: #111827;
  font-family: NeueHaasGroteskRoman;
}

/* Password eye button */
.login-eye-btn {
  border-radius: 0 8px 8px 0 !important;
  /*border: none;*/
  /*background-color: #e5e7eb;
  color: #374151;*/
  background-color: var(--login-blue);  
  border: 1px solid #ffffff;
  border-left: var(--login-blue);
  position: absolute !important;
  top: 0;
  right: 0;
  height: 100%;
  z-index: 10 !important;
}


[name=password]:focus ~ .login-eye-btn {
  background-color: var(--Cream, #FCFAF7);
  color: black;
  border-color: var(--Yellow, #FFDD33);
}

[name=password]:not(:placeholder-shown) ~ .login-eye-btn {
  background-color: var(--Cream, #FCFAF7);
  color: black;
  border: none;
}

[name=password]:not(:placeholder-shown):focus ~ .login-eye-btn {
  background-color: var(--Cream, #FCFAF7);
  color: black;
  border: none;
}

[name="Password Confirmation"]:focus ~ .login-eye-btn {
  background-color: var(--Cream, #FCFAF7);
  color: black;
  border-color: var(--Yellow, #FFDD33);
}

[name="Password Confirmation"]:not(:placeholder-shown) ~ .login-eye-btn {
  background-color: var(--Cream, #FCFAF7);
  color: black;
  border: none;
}

[name="Password Confirmation"]:not(:placeholder-shown):focus ~ .login-eye-btn {
  background-color: var(--Cream, #FCFAF7);
  color: black;
  border: none;
}

.login-eye-btn .fa {
  font-size: 0.9rem;
}

/* Submit button – similar to Figma */
.login-submit-btn {
  border-radius: 10px;
  padding: 0.6rem 1.5rem;
  /*min-width: 120px;*/
  font-family: NeueHaasGroteskRoman;
}

/* When disabled (Bootstrap .btn-primary[disabled]) */
.login-submit-btn:disabled,
.login-submit-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Links */
.login-link {
  color: #e0f2fe;
  text-decoration: underline;
  font-family: NeueHaasGroteskRoman;
}

.login-link:hover {
  text-decoration: none;
}

/* Bottom strip */
.login-bottom-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-top: 1px solid var(--Cream-Rule, rgba(252, 250, 247, 0.30));
}

.login-bottom-text {
  /* font-size: 3rem; */
  /* font-weight: 800; */
  /* letter-spacing: 0.15em; */
  /* opacity: 0.22; */
  max-width: 1440px;
  width: 100%;
  height: 104px;
  position: relative;
  /* font-size: 144px; */
  font-size: clamp(16px, 10vw, 144px);
  /* line-height: 104px; */
  line-height: .7222222222;
  text-transform: uppercase;
  display: inline-block;
  color: rgba(252, 250, 247, 0.3);
  text-align: center;
  font-family: FoundersGroteskXBold;
  bottom: -20px;
  align-items: flex-end;
  overflow: hidden;
}

/* Responsiveness */
@media (max-width: 999px) {
  .login-card {
    box-shadow: none;
    background-color: var(--login-blue);
    padding: 1.75rem 1.25rem 3rem;
    border-radius: 0;
  }
  .login-photo-wrapper {
    overflow-x: hidden;
    overflow-y: auto;
}

  .login-bottom-strip {
    display: block !important;
  position: relative;
  /* left: 0; */
  /* right: 0; */
  /* bottom: 0; */
  /* height: 140px; */
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-top: 1px solid var(--Cream-Rule, rgba(252, 250, 247, 0.30));
	overflow-x: hidden;
	overflow-y: auto;
	margin-top: auto;
  }
  
  .body {
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: 100px;
  }
  
	.login-page {
	  background-color: var(--login-blue);
	  color: #ffffff;
	  position: relative;
	  overflow-x: hidden;
	  overflow-y: auto;
	  display: flex;
	  flex-direction: column;
	  min-height: 100dvh;
	}

	.login-page > .container {
	  flex: 1 0 auto;
	  display: flex;
	}

	.login-row {
	  margin: 0 auto;
	  flex: 1;
      max-width: 100%;
	}
	
  .bottom-btn-links {
	  flex-direction: column !important;
  }
  
  .cwa-pwd-links {
    align-items: baseline;
	padding-top: 32px;
  }
  
  .container {
	  padding-left: 0px !important;
	  padding-right: 0px !important;
  }
}

@media (max-width: 1025px) {
  .login-bottom-strip {
    display: block !important;
  }
}

@media (max-width: 575.98px) {
  .login-card {
    padding: 1.5rem 1rem 2rem;
  }
}

/* Base look for empty input */
.login-card .form-control {
    background-color: var(--login-blue); 
    border: 1px solid #ffffff;
    color: #ffffff;
    border-radius: 8px !important;
    padding: 0.8rem 1rem;
    transition: all 0.25s ease;
    z-index: 1;
}

/* Placeholder color (white at 60%) */
.login-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Focused input (optional design enhancement) */
.login-card .form-control:focus {
    background-color: var(--Cream, #FCFAF7);
    border-color: var(--Yellow, #FFDD33);
    box-shadow: 0 0 0 0.15rem rgba(255, 221, 51, 0.35);
    color: #ffffff;
}

/* FILLED STATE – when there is text inside */
.login-card .form-control:not(:placeholder-shown) {
    background-color: var(--Cream, #FCFAF7);
    color: var(--Charcoal, #17181A);
    border-color: var(--Cream, #FCFAF7);
}

/* Keep the filled state on focus too */
.login-card .form-control:not(:placeholder-shown):focus {
    background-color: var(--Cream, #FCFAF7);
    color: var(--Charcoal, #17181A);
    /*border-color: var(--Yellow, #FFDD33);*/
	border-color: var(--White, #ffffff);
}

.error-message {
    width: 100%;
    background-color: var(--Yellow);
    color: var(--Charcoal) !important;
    border-radius: 0.25rem;
    align-self: stretch;
    padding: 0.3rem 1rem;
    display: block;
    font-family: NeueHaasGroteskRoman !important;
}

.z-offset {
  z-index: 1;
}
