/* =========================================================
   ROOT VARIABLES
========================================================= */
:root {
    --primary-blue: #2563EB;
    --primary-dark: #0F172A;
    --dark-text: #394A51;
    --white: #FFF;
    --border-color: rgba(57, 74, 81, .6);
    --light-grey: #787878;
    --required-red: #CD0505;
    --border-radius: 10px;
    --primary-font: "poppins", sans-serif;
}

/* =========================================================
   BASE / RESET
========================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    font-family: var(--primary-font);
}

html,
body {
    margin: 0;
    overflow-x: hidden;
}

/* =========================================================
   LAYOUT
========================================================= */
#loginForm {
    height: 100vh;
    margin: 1rem;
}
#loginForm a {
    color: var(--primary-blue);
}

#loginForm a:visited {
  color: var(--primary-blue);
}

#loginForm a:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

#loginForm a:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

#loginForm a:active {
  opacity: 0.85;
}

.login {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login .form-steps {
    width: 100%;
}

.login-form {
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.login-form-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form-container .col-2 {
    width: 100%;
    height: 100vh;
}

.form-col {
    display: flex;
    align-items: center;
}

.form-content {
    width: 100%;
    max-width: 50%;
    margin: auto;
}

.primary-bg {
    background: var(--primary-blue);
    color: var(--white);
    border-radius: var(--border-radius);
}

.col-2-content {
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 2.2rem;
    line-height: 3rem;
    font-weight: 500;
}

/* =========================================================
   HEADER
========================================================= */
#appHeader {
    width: 100%;
    max-width: 90%;
    margin: auto;
    position: absolute;
    top: 1rem;
    left: 5%;
}

/* =========================================================
   TYPOGRAPHY
========================================================= */
.form-content h3 {
    color: var(--primary-dark);
    font-size: 2rem;
    line-height: 2rem;
    margin-bottom: 0;
}

.form-description {
    color: var(--dark-text);
    margin-bottom: 1.5rem;
}

.form-title {
    color: var(--primary-dark);
    margin: 1rem 0 .5rem;
    font-weight: 500;
}

/* =========================================================
   PROGRESS BAR
========================================================= */
.progress-bar-container {
    width: 100%;
    margin-bottom: 1.5rem;
}

.progress-bar-label {
    font-size: .85rem;
    color: var(--light-grey);
    margin-bottom: 6px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #d5d5d5;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar-fill {
    display: block;
    height: 100%;
    width: 0;
    background: var(--primary-blue);
    border-radius: 999px;
    transition: width .3s ease;
}

.progress-bar-container[data-step="1"][data-total="2"] .progress-bar-fill {
    width: 50%;
}

.progress-bar-container[data-step="2"][data-total="2"] .progress-bar-fill {
    width: 100%;
}

/* =========================================================
   MULTI-STEP TRANSITIONS
========================================================= */
.form-steps {
    position: relative;
    overflow: hidden;
}

.form-step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: transform .25s ease, opacity .2s ease;
}

.form-step.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
}

.form-step.exit-left {
    transform: translateX(-100%);
    opacity: 0;
}

.form-step.exit-right {
    transform: translateX(100%);
    opacity: 0;
}

/* =========================================================
   FORM CONTROLS
========================================================= */
.form-control {
    position: relative;
    margin-bottom: 1rem;
}

.form-control input {
    width: 100%;
    padding: 22px 12px 1px 20px;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: transparent;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-control input:hover {
    border-color: var(--primary-dark);
    box-shadow: inset 0 0 0 .5px var(--primary-dark);
}

.form-control input:focus {
    border-color: var(--primary-blue);
    box-shadow: inset 0 0 0 .5px var(--primary-blue);
}

/* =========================================================
   FLOATING LABELS
========================================================= */
.form-control label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: .95rem;
    color: var(--light-grey);
    pointer-events: none;
    transition: all .2s ease;
    padding: 0 4px;
}

.form-control input:focus + label,
.form-control input:not(:placeholder-shown) + label {
    top: 16px;
    left: 17px;
    font-size: .75rem;
}

.form-control input:focus + label {
    color: var(--primary-blue);
}

.form-control input:not(:focus):not(:placeholder-shown) + label {
    color: var(--light-grey);
}

/* =========================================================
   SELECT FIELDS
========================================================= */
.form-control select {
    width: 100%;
    padding: 11px 10px 11px 20px;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: transparent;
    color: var(--light-grey);
    appearance: none;
    outline: none;
}

.form-control select:hover {
    border-color: var(--primary-dark);
}

.form-control select:focus {
    border-color: var(--primary-blue);
    box-shadow: inset 0 0 0 .5px var(--primary-blue);
}

.form-control select:valid {
    color: var(--primary-dark);
}

.select-arrow {
    position: absolute;
    top: 54%;
    right: 13px;
    transform: translateY(-50%);
    width: 20px;
}

/* =========================================================
   BUTTONS
========================================================= */
.form-btns {
    display: flex;
    justify-content: space-between;
}
.btn-center {
    width: 100%;
    text-align: center;
}
.next-btn,
.prev-btn {
    padding: 10px 30px 8px;
    border: 1px solid;
    border-radius: var(--border-radius);
    font-size: 17px;
    cursor: pointer;
}

.prev-btn {
    border-color: #c4c4c4;
}

#step1 .prev-btn {
    visibility: hidden;
}

.next-btn {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* =========================================================
   PASSWORD FIELD / TOGGLE
========================================================= */
.pw-toggle-on,
.pw-toggle-off {
    position: absolute;
    top: 50%;
    right: 1px;
    transform: translateY(-50%);
    height: 96%;
    width: 56px;
    padding: 13px 5px;
    border-radius: 0 10px 10px 0;
    color: var(--primary-dark);
    cursor: pointer;
}

.pw-toggle-on:hover,
.pw-toggle-off:hover {
    background: #ddd;
}

.pw-toggle-off {
    display: none;
}

/* =========================================================
   PASSWORD REQUIREMENTS
========================================================= */
.password-requirements .error {
    color: var(--required-red);
}

.password-requirements .error svg {
    width: 20px;
    position: relative;
    top: 4px;
}

.requirement {
    font-size: 14px;
    color: var(--light-grey);
}

.password-requirements span.success {
    color: #32821c;
}

.requirement.req-success {
    color: var(--dark-text);
}

/* =========================================================
   ERROR STATES (DO NOT TOUCH)
========================================================= */
.field-error {
    display: none;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--required-red);
    margin-bottom: 10px;
    position: relative;
    top: -5px;
}

.field-error svg {
    width: 17px;
    position: relative;
    bottom: 2px;
}

.field-error.active {
    display: flex;
}

.input-error {
    border-color: var(--required-red) !important;
    box-shadow: inset 0 0 0 .5px var(--required-red) !important;
}

.label-error {
    color: var(--required-red) !important;
}

.error-text a {
    color: var(--primary-blue);
}

.alert-error, .alert-success {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.alert-error {
    color: var(--required-red) !important;
}

.alert-error svg, .alert-success svg {
    width: 20px;
    position: relative;
    bottom: 2px;
    margin-right: 5px;
}

.register-text {
    margin-bottom: 0;
}
.register-time {
    color: var(--dark-text);
    margin-top: 5px;
}
.forgot-pw {
    text-align: left;
    margin-top: 0;
    margin-bottom: 1.5rem;
}
.alert-success svg, .success-email svg {
    color: #32821c;
}
.success-email, .email--error {
    text-align: center;
}
.email--error svg {
    color: var(--required-red);
}
.success-email svg, .email--error svg {
    width: 100px;
    padding: 25px;
    border-radius: 100%;
}
.success-email svg {
    border: 2px solid #32821c;
}
.email--error svg {
    border: 2px solid var(--required-red);
}
.success-email h3 {
    color: var(--primary-dark);
    margin-top: .5rem;
}
.success-email p {
    color: var(--dark-text);
}
