@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

/* ===========================================
   Base
   =========================================== */
body {
  font-family: "Montserrat", sans-serif;
  color: rgba(0, 0, 0, 0.87);
  margin: 0;
  height: 100vh;
  overflow-y: scroll;
  background: rgb(243, 247, 255);
  display: flex;
  flex-direction: column;
  align-items: center;
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-background-clip: text;
  -webkit-text-fill-color: rgba(0, 0, 0, 0.87);
  transition: background-color 5000s ease-in-out 0s;
  box-shadow: inset 0 0 0px 0px #23232329;
}

a,
a:hover,
a:focus,
a:active {
  color: rgb(62, 111, 240) !important;
  text-decoration: none;
}

/* ===========================================
   Layout
   =========================================== */
.auth-container {
  padding: 20px;
  display: flex;
  justify-content: center;
  height: auto;
  flex: 1;
  width: 100%;
}

.half {
  width: 50%;
}

.login-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 10vh;
}

.card {
  background-color: white;
  border-radius: 4px;
  width: 100%;
  max-width: 460px;
}

.card-content {
  box-sizing: border-box;
  display: flex;
  flex-flow: column wrap;
  width: 100%;
  padding: 40px;
  align-items: center;
  gap: 20px;
  text-align: center;
}

/* ===========================================
   Form Sections
   =========================================== */
form {
  display: grid;
  gap: 1.5rem;
  width: 100%;
}

.form-header {
  box-sizing: border-box;
  display: flex;
  flex-flow: column wrap;
  width: 100%;
  margin: 0;
  align-items: center;
  gap: 10px;
  max-width: 400px;
}

.form-fields {
  box-sizing: border-box;
  display: flex;
  flex-flow: column wrap;
  width: 100%;
  gap: 14px;
}

.form-check {
  text-align: left;
  cursor: pointer;
  margin-bottom: 1em;
}

.form-check span {
  font-size: 14px;
}

.form-actions {
  box-sizing: border-box;
  display: flex;
  flex-flow: column wrap;
  margin: 1rem 0 0;
  align-items: center;
  width: 100%;
  gap: 10px;
}

/* ===========================================
   Typography
   =========================================== */
.page-title {
  margin: 0;
  line-height: normal;
  font-size: 20px;
  font-weight: 600;
}

.page-subtitle {
  margin: 0;
  font-weight: 400;
  text-align: center;
  font-size: 14px;
  line-height: 24px;
}

/* ===========================================
   Field
   =========================================== */
.field {
  position: relative;
  display: inline-block;
  font-size: 1em;
}

.field > input {
  position: relative;
  background-color: transparent;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  padding: 11px 16px;
  outline: 0;
  transition: top 0.3s ease;
  z-index: 2;
  width: 100%;
}

.field.has-addon > input {
  padding: 11px 40px 11px 16px;
}

.field > input:hover,
.field > input:focus {
  padding: 11px 16px 11px 15px;
  margin-bottom: -1px;
  margin-top: -1px;
}

.field.has-addon > input:hover,
.field.has-addon > input:focus {
  padding: 11px 40px 11px 15px;
}

.field > input:hover {
  border: 2px solid rgba(0, 0, 0, 0.25);
}

.field > input:focus {
  border: 2px solid rgba(0, 0, 0, 0.87);
}

.field > label {
  position: absolute;
  top: 12px;
  left: 12px;
  transition: all 0.3s ease;
  color: rgb(128, 128, 128);
}

.field > input:focus + label,
.field > input:not(:placeholder-shown) + label {
  top: -10px;
  left: 12px;
  font-size: 0.8em;
  font-weight: 600;
  color: #333;
  background-color: #fff;
  z-index: 10;
  padding: 0 4px;
}

.field-addon {
  background-color: transparent;
  border: 0;
  position: absolute;
  right: 12px;
  z-index: 10;
  padding: 11px 0 10px;
}

/* ===========================================
   Button
   =========================================== */
.btn {
  font-weight: 600;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  width: 100%;
  background-color: rgb(62, 111, 240);
  color: rgb(255, 255, 255);
  border: 1px solid rgb(62, 111, 240);
  border-radius: 45px;
  transition-property: background-color, box-shadow, border-color, color;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.btn.btn-with-loader {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-with-loader .btn-text {
  transition: opacity 150ms ease;
}

.btn-with-loader .btn-spinner {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
}

.btn-with-loader.loading .btn-spinner {
  visibility: visible;
}

.btn:hover,
.btn:focus,
.btn:active {
  color: rgb(62, 111, 240) !important;
  background-color: rgb(255, 255, 255) !important;
  border-color: rgb(62, 111, 240) !important;
  box-shadow: none;
  outline: 0;
}

.btn:disabled {
  cursor: not-allowed;
  pointer-events: none;
  background-color: rgba(62, 111, 240, 0.5);
  border-color: rgba(62, 111, 240, 0.5);
}

.btn.secondary {
  background-color: transparent;
  color: rgb(62, 111, 240);
  text-decoration: none;
}

.btn.outline {
  background-color: rgb(255, 255, 255);
  color: rgb(62, 111, 240);
}

.btn.outline:disabled {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.5;
}

/* ===========================================
   Link
   =========================================== */
.link {
  text-align: right;
  margin-bottom: -8px;
}

.link a {
  font-size: 14px;
  text-decoration: none;
}

/* ===========================================
   Alert
   =========================================== */
.alert {
  display: flex;
  flex-direction: row;
  border-radius: 4px;
  padding: 6px 16px;
  font-weight: 400;
  font-size: 14px;
  max-width: 400px;
  text-align: left;
  width: 100%;
}

.alert.error {
  color: rgb(95, 33, 32);
  background-color: rgb(253, 237, 237);
}

.alert.success {
  color: rgb(30, 70, 32);
  background-color: rgb(237, 247, 237);
}

.alert.info {
  color: rgba(0, 0, 0, 0.87);
  background-color: rgba(62, 111, 240, 0.1);
}

.alert.warning {
  color: rgba(0, 0, 0, 0.87);
  background-color: rgba(245, 217, 58, 0.39);
}

.alert-icon {
  margin-right: 12px;
  padding: 7px 0;
  display: flex;
  font-size: 22px;
  opacity: 0.9;
}

.alert-icon svg {
  width: 1em;
  height: 1em;
}

.alert.info .alert-icon svg { color: rgb(2, 136, 209); }
.alert.success .alert-icon svg { color: rgb(46, 125, 50); }
.alert.warning .alert-icon svg { color: rgb(209, 137, 2); }
.alert.error .alert-icon svg { color: rgb(211, 47, 47); }

.alert-content {
  font-size: 0.8125rem;
  padding: 8px 0;
  min-width: 0;
  overflow: auto;
  text-align: left;
}

/* ===========================================
   OTP Countdowns
   =========================================== */
.otp-countdown,
.otp-expire-countdown {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.otp-expire {
  text-align: right;
  font-size: 12px;
  margin-top: -1em;
  margin-bottom: -1em;
}

/* ===========================================
   Social Providers
   =========================================== */
.social-btn {
  display: flex;
  flex-direction: row;
  width: 100%;
  border: 1px solid #a3a3a3;
  border-radius: 50px;
  color: rgba(0, 0, 0, 0.75);
  align-items: center;
  gap: 3em;
  padding: 0.75em 2em;
  font-weight: 600;
  text-decoration: none;
  justify-content: flex-start;
}

.social-btn:hover {
  border-color:  #3c3c3c;
}

.social-btn svg {
  width: 1em;
}

.social-providers {
  width: 100%;
}

.social-providers ul {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.divider {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1em;
  padding: 0 1em;
  margin-top: 1em;
}

.divider-line {
  height: 0;
  border-bottom: 1px solid #a3a3a3;
  width: 100%;
}

.divider span {
  color: #a3a3a3;
  font-size: 13px;
  width: 100%;
  white-space: nowrap;
}

/* ===========================================
   Account Selector
   =========================================== */
.account-list {
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding: 0;
}

.account-list li button {
  width: 100%;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 4px;
  min-height: 52px;
  background-color: rgb(230, 230, 230);
  box-shadow: none;
  border: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1em;
  font-weight: 600;
  cursor: pointer;
}

/* ===========================================
   Password Requirements
   =========================================== */
.password-requirements {
  margin-bottom: 1em;
}

.password-requirements,
.password-confirm {
  display: flex;
  flex-direction: column;
  color: rgb(228, 77, 119);
  font-size: 12px;
  align-items: start;
}

.password-requirements div,
.password-confirm div {
  display: flex;
  flex-direction: row;
}

.password-requirements .lucide,
.password-confirm .lucide {
  width: 18px;
  height: 18px;
}

.password-check.valid {
  color: rgb(59, 171, 121);
}

.password-check.valid .lucide.lucide-check { display: block; }
.password-check:not(.valid) .lucide.lucide-check { display: none; }
.password-check:not(.valid) .lucide.lucide-x { display: block; }
.password-check.valid .lucide.lucide-x { display: none; }

/* ===========================================
   Icons (Lucide)
   =========================================== */
.lucide.lucide-eye-off,
.lucide.lucide-eye {
  width: 24px;
  height: 24px;
  display: block;
}

.lucide.lucide-eye {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"/><circle cx="12" cy="12" r="3"/></svg>');
}

.lucide.lucide-eye-off {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"/><path d="M14.084 14.158a3 3 0 0 1-4.242-4.242"/><path d="M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"/><path d="m2 2 20 20"/></svg>');
}

.lucide.lucide-x {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="rgb(228, 77, 119)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>') no-repeat;
}

.lucide.lucide-check {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="rgb(59, 171, 121)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>');
}

/* ===========================================
   Tooltip
   =========================================== */
.tooltip-custom.tooltip {
  --bs-tooltip-max-width: 350px;
  --bs-tooltip-color: rgba(0, 0, 0, 0.75);
  --bs-tooltip-bg: #e7e7e7;
  --bs-tooltip-border-radius: 4px;
  --bs-tooltip-opacity: 1;
  --bs-tooltip-padding-x: 1rem;
  --bs-tooltip-padding-y: 0.75rem;
}

.tooltip-custom .tooltip-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.5em;
}

.tooltip-custom .tooltip-inner p {
  margin: 0;
}

/* ===========================================
   News Panel (Left side)
   =========================================== */
.news-panel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 100%;
  position: relative;
}

.news-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  z-index: -1;
  background-size: cover;
  background-position: 50% 50%;
}

.news-wrapper {
  display: flex;
  align-items: flex-end;
  height: 100%;
  width: 100%;
}

.news-content {
  display: flex;
  flex-flow: column wrap;
  color: rgb(255, 255, 255);
  gap: 20px;
  padding-inline: 70px;
  padding-bottom: 15%;
}

.news-title {
  line-height: normal;
  font-size: 30px;
  font-weight: 700;
}

.news-button {
  user-select: none;
  background-color: transparent;
  color: rgb(255, 255, 255) !important;
  border: 1px solid rgb(255, 255, 255);
  border-radius: 45px;
  padding: 6px 16px;
  font-size: 13px;
  width: fit-content;
  transition-property: background-color, box-shadow, border-color, color;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.news-button:hover {
  background-color: rgb(255, 255, 255);
  margin-top: 0px;
}

/* ===========================================
   Footer
   =========================================== */
.logo {
  width: 150px;
  margin-bottom: 30px;
}

.footer {
  display: flex;
  flex-direction: row;
}

.footer svg {
  margin-left: 24px;
  width: 24px;
}

.footer-link {
  padding: 16px;
  color: rgba(0, 0, 0, 0.75) !important;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.footer-link:hover {
  color: rgba(0, 0, 0, 0.75) !important;
  text-decoration: underline;
}

.footer-link span {
  font-weight: 700;
}

/* ===========================================
   Utilities
   =========================================== */
.override-warning,
.communications-warning {
  position: fixed;
  top: 0;
  z-index: 1;
  width: 100%;
  padding: 8px;
  text-align: center;
  font-weight: bold;
  color: white;
  font-size: 0.8em;
}
.communications-warning {
  background: rgba(219, 81, 76, 0.7);
}
.override-warning {
  background:  rgba(227, 106, 61, 0.7);
}

/* ===========================================
   Responsive
   =========================================== */
@media (max-width: 1280px) {
  .desktop {
    display: none;
  }
  .login-section {
    padding-top: 8px;
    width: 100%;
  }
}
