@import url(
  'https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap'
);


/* ==========================================================
   VARIABLES
   ========================================================== */

:root{

  --bg: #ffffff;

  --text: #0f1724;

  --muted: #64748b;


  --primary: #0b3d91;

  --primary-hover: #092f70;

  --primary-light: #eaf1ff;


  --primary-50:
    rgba(11, 61, 145, .07);


  --primary-100:
    rgba(11, 61, 145, .13);


  --card:
    #ffffff;


  --border:
    #d9e2ef;


  --border-hover:
    #9db2cf;


  --radius:
    16px;


  --shadow:
    0 20px 60px
    rgba(11, 61, 145, .14),

    0 2px 8px
    rgba(15, 23, 36, .05);


  --dropdown-shadow:
    0 18px 45px
    rgba(15, 23, 42, .18),

    0 5px 15px
    rgba(15, 23, 42, .09);


  --danger:
    #e74c3c;


  --danger-50:
    rgba(231, 76, 60, .12);
}


/* ==========================================================
   RESET
   ========================================================== */

*{
  box-sizing: border-box;
}


html,
body{
  min-height: 100%;
}


html{
  scroll-behavior: smooth;
}


body{

  margin: 0;

  min-height: 100vh;


  font-family:
    'Poppins',
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Arial,
    sans-serif;


  color:
    var(--text);


  background:
    var(--bg);


  overflow-x: hidden;
}


/* ==========================================================
   BACKGROUND
   ========================================================== */

.bg-blob{

  position: fixed;

  border-radius: 50%;


  filter:
    blur(90px);


  pointer-events:
    none;


  z-index: 0;
}


.bg-blob-1{

  width: 420px;

  height: 420px;


  top: -140px;

  left: -140px;


  background:
    var(--primary-100);
}


.bg-blob-2{

  width: 460px;

  height: 460px;


  right: -160px;

  bottom: -160px;


  background:
    var(--primary-50);
}


/* ==========================================================
   WRAPPER
   ========================================================== */

.auth-wrap{

  min-height: 100vh;


  display: grid;


  place-items: center;


  padding:
    40px 24px;


  position: relative;


  z-index: 1;


  overflow: visible;
}


/* ==========================================================
   CARD
   ========================================================== */

.auth-card{

  width: 100%;


  max-width:
    560px;


  position: relative;


  background:
    rgba(255, 255, 255, .98);


  border:
    1px solid
    rgba(11, 61, 145, .11);


  border-radius:
    var(--radius);


  box-shadow:
    var(--shadow);


  padding:
    30px 28px;


  /*
  VERY IMPORTANT
  Do not hide dropdown menu.
  */

  overflow:
    visible;
}


/* ==========================================================
   HEADER
   ========================================================== */

.auth-head{

  text-align: center;


  margin-bottom:
    12px;
}


.auth-head h1{

  margin:
    0 0 7px;


  font-size:
    1.75rem;


  line-height:
    1.25;


  font-weight:
    800;


  letter-spacing:
    -.02em;


  color:
    var(--text);
}


.subtitle{

  margin: 0;


  color:
    var(--muted);


  font-size:
    .95rem;
}


/* ==========================================================
   FORM
   ========================================================== */

.form{

  margin-top:
    18px;


  display: grid;


  gap:
    18px;


  position:
    relative;


  overflow:
    visible;
}


/* ==========================================================
   FIELD
   ========================================================== */

.field{

  display: grid;


  gap: 7px;


  position:
    relative;


  /*
  Normal fields stay below
  an opened dropdown.
  */

  z-index: 1;
}


/*
============================================================
IMPORTANT FIX

When dropdown is open,
its COMPLETE field becomes
higher than Section II
and all other controls.
============================================================
*/

.dropdown-field-open{

  z-index:
    10000 !important;
}


.field > label{

  font-size:
    .94rem;


  font-weight:
    700;


  color:
    var(--text);
}


/* ==========================================================
   CUSTOM SELECT
   ========================================================== */

.custom-select{

  width: 100%;


  position:
    relative;


  z-index:
    1;
}


/*
============================================================
IMPORTANT

Do NOT give Section II
a permanently higher z-index.

The old:

#section2Dropdown {
  z-index: 30;
}

was causing the problem.

It has been removed.
============================================================
*/


.custom-select.open{

  z-index:
    10001;
}


/* ==========================================================
   TRIGGER
   ========================================================== */

.custom-select-trigger{

  width: 100%;


  min-height:
    50px;


  display: flex;


  align-items:
    center;


  justify-content:
    space-between;


  gap: 12px;


  padding:
    0 14px 0 16px;


  border:
    1.5px solid
    var(--border);


  border-radius:
    12px;


  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #fbfdff 100%
    );


  color:
    var(--text);


  font-family:
    inherit;


  font-size:
    .97rem;


  font-weight:
    500;


  text-align:
    left;


  outline:
    none;


  cursor:
    pointer;


  box-shadow:
    0 1px 3px
    rgba(15, 23, 42, .03);


  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease,
    transform .15s ease;
}


.custom-select-trigger:hover{

  border-color:
    var(--border-hover);


  background:
    #ffffff;
}


.custom-select.open
.custom-select-trigger{

  border-color:
    var(--primary);


  box-shadow:
    0 0 0 4px
    var(--primary-50);


  background:
    #ffffff;
}


/* ==========================================================
   SELECT TEXT
   ========================================================== */

.custom-select-text{

  flex: 1;


  overflow:
    hidden;


  white-space:
    nowrap;


  text-overflow:
    ellipsis;
}


.custom-select-text.placeholder{

  color:
    #8794a8;


  font-weight:
    400;
}


/* ==========================================================
   ACTIONS
   ========================================================== */

.custom-select-actions{

  display:
    flex;


  align-items:
    center;


  justify-content:
    center;


  gap:
    8px;


  flex-shrink:
    0;
}


/* ==========================================================
   ARROW
   ========================================================== */

.custom-arrow{

  width:
    28px;


  height:
    28px;


  display:
    flex;


  align-items:
    center;


  justify-content:
    center;


  border-radius:
    8px;


  color:
    var(--primary);


  background:
    var(--primary-50);


  transition:
    transform .22s ease,
    background .2s ease;
}


.custom-arrow svg{

  width:
    17px;


  height:
    17px;


  fill:
    none;


  stroke:
    currentColor;


  stroke-width:
    2.2;


  stroke-linecap:
    round;


  stroke-linejoin:
    round;
}


.custom-select.open
.custom-arrow{

  transform:
    rotate(180deg);


  background:
    var(--primary-100);
}


/* ==========================================================
   CLEAR
   ========================================================== */

.dropdown-clear{

  width:
    23px;


  height:
    23px;


  display:
    inline-flex;


  align-items:
    center;


  justify-content:
    center;


  flex-shrink:
    0;


  border-radius:
    50%;


  background:
    var(--danger);


  color:
    #ffffff;


  font-size:
    11px;


  font-weight:
    700;


  line-height:
    1;


  cursor:
    pointer;


  box-shadow:
    0 3px 8px
    rgba(231, 76, 60, .18);


  transition:
    transform .15s ease,
    background .15s ease;
}


.dropdown-clear[hidden]{

  display:
    none !important;
}


.dropdown-clear:hover{

  background:
    #c0392b;


  transform:
    scale(1.08);
}


/* ==========================================================
   DROPDOWN MENU
   ========================================================== */

.custom-select-menu{

  /*
  Always underneath
  its own trigger.
  */

  position:
    absolute;


  top:
    calc(100% + 8px);


  left:
    0;


  right:
    0;


  /*
  Extremely high within
  opened field.
  */

  z-index:
    10002;


  width:
    100%;


  max-height:
    280px;


  overflow-y:
    auto;


  overflow-x:
    hidden;


  padding:
    7px;


  border:
    1px solid
    #d4dfed;


  border-radius:
    13px;


  background:
    #ffffff;


  box-shadow:
    var(--dropdown-shadow);


  opacity:
    0;


  visibility:
    hidden;


  transform:
    translateY(-6px)
    scale(.985);


  transform-origin:
    top center;


  pointer-events:
    none;


  transition:
    opacity .18s ease,
    transform .18s ease,
    visibility .18s ease;
}


/* ==========================================================
   OPEN MENU
   ========================================================== */

.custom-select.open
.custom-select-menu{

  opacity:
    1;


  visibility:
    visible;


  transform:
    translateY(0)
    scale(1);


  pointer-events:
    auto;
}


/* ==========================================================
   OPTIONS
   ========================================================== */

.custom-option{

  width:
    100%;


  min-height:
    43px;


  display:
    flex;


  align-items:
    center;


  padding:
    10px 12px;


  border:
    none;


  border-radius:
    9px;


  background:
    transparent;


  color:
    #1e293b;


  font-family:
    inherit;


  font-size:
    .93rem;


  font-weight:
    500;


  text-align:
    left;


  cursor:
    pointer;


  outline:
    none;


  transition:
    background .15s ease,
    color .15s ease,
    transform .15s ease;
}


.custom-option:hover{

  color:
    var(--primary);


  background:
    var(--primary-50);


  transform:
    translateX(2px);
}


.custom-option:focus{

  color:
    var(--primary);


  background:
    var(--primary-50);
}


.custom-option.selected{

  color:
    var(--primary);


  background:
    var(--primary-light);


  font-weight:
    600;
}


/* ==========================================================
   SCROLL BAR
   ========================================================== */

.custom-select-menu{

  scrollbar-width:
    thin;


  scrollbar-color:
    #a9bbd5
    transparent;
}


.custom-select-menu::-webkit-scrollbar{

  width:
    7px;
}


.custom-select-menu::-webkit-scrollbar-track{

  background:
    transparent;
}


.custom-select-menu::-webkit-scrollbar-thumb{

  background:
    #bac8da;


  border-radius:
    20px;
}


.custom-select-menu::-webkit-scrollbar-thumb:hover{

  background:
    #91a7c4;
}


/* ==========================================================
   DISABLED
   ========================================================== */

.custom-select.disabled
.custom-select-trigger,

.custom-select-trigger:disabled{

  cursor:
    not-allowed;


  opacity:
    .55;


  background:
    #f7f9fc;


  box-shadow:
    none;
}


.custom-select.disabled
.custom-arrow{

  opacity:
    .65;
}


/* ==========================================================
   STANDARD SELECT
   ========================================================== */

.select{

  width:
    100%;


  height:
    46px;


  padding:
    10px 12px;


  border:
    1.5px solid
    var(--border);


  border-radius:
    11px;


  background:
    #ffffff;


  color:
    var(--text);


  font-family:
    inherit;


  font-size:
    .95rem;


  outline:
    none;


  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}


.select:focus{

  border-color:
    var(--primary);


  box-shadow:
    0 0 0 4px
    var(--primary-50);
}


.select:disabled{

  opacity:
    .55;


  cursor:
    not-allowed;
}


/* ==========================================================
   CONDITIONAL FIELDS
   ========================================================== */

.status-field.hidden-field{

  display:
    none;
}


.status-inline-row{

  display:
    flex;


  align-items:
    center;


  gap:
    10px;
}


.status-inline-label{

  min-width:
    fit-content;


  margin:
    0;


  font-size:
    .95rem;


  font-weight:
    700;


  color:
    var(--text);
}


.status-inline-select{

  width:
    190px;


  min-width:
    190px;
}


/* ==========================================================
   ERROR
   ========================================================== */

.is-invalid{

  border-color:
    var(--danger)
    !important;


  box-shadow:
    0 0 0 4px
    var(--danger-50)
    !important;
}


.error-msg{

  display:
    none;


  color:
    var(--danger);


  font-size:
    .82rem;


  font-weight:
    600;


  margin-top:
    2px;
}


.error-msg.show{

  display:
    block;
}


/* ==========================================================
   CONTINUE
   ========================================================== */

.btn-primary{

  width:
    100%;


  height:
    49px;


  margin-top:
    2px;


  position:
    relative;


  z-index:
    0;


  border:
    1px solid
    var(--primary);


  border-radius:
    11px;


  background:
    linear-gradient(
      135deg,
      #0b3d91,
      #104da8
    );


  color:
    #ffffff;


  font-family:
    inherit;


  font-size:
    .98rem;


  font-weight:
    700;


  display:
    inline-flex;


  align-items:
    center;


  justify-content:
    center;


  gap:
    8px;


  cursor:
    pointer;


  box-shadow:
    0 8px 18px
    rgba(11, 61, 145, .18);


  transition:
    transform .16s ease,
    box-shadow .2s ease,
    background .2s ease;
}


.btn-primary:hover{

  transform:
    translateY(-1px);


  box-shadow:
    0 12px 26px
    rgba(11, 61, 145, .25);


  background:
    linear-gradient(
      135deg,
      #0a3783,
      #0d4599
    );
}


.btn-primary:active{

  transform:
    translateY(0);
}


.continue-arrow{

  width:
    17px;


  height:
    17px;


  fill:
    none;


  stroke:
    currentColor;


  stroke-width:
    2;


  stroke-linecap:
    round;


  stroke-linejoin:
    round;


  transition:
    transform .2s ease;
}


.btn-primary:hover
.continue-arrow{

  transform:
    translateX(3px);
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px){

  .auth-wrap{

    padding:
      24px 15px;
  }


  .auth-card{

    padding:
      24px 18px;
  }


  .auth-head h1{

    font-size:
      1.5rem;
  }


  .custom-select-trigger{

    min-height:
      48px;


    padding-left:
      13px;
  }


  .custom-select-menu{

    max-height:
      240px;
  }


  .status-inline-row{

    flex-direction:
      column;


    align-items:
      stretch;
  }


  .status-inline-select{

    width:
      100%;


    min-width:
      100%;
  }

}



/* Section II swaps to the Yosef page choices when Section I = Yosef. */
.custom-option[hidden]{
  display: none !important;
}
