:root {
    --bf-primary: var(--primary);
    --bf-body-bg: var(--bg);
    --bf-black: var(--text);
    --bf-blue: var(--secondary);
    --bf-grey: var(--text-light);
    --bf-light-grey: var(--border);
    --bf-white: var(--bg-light);
    --bf-success: var(--accent-2);
    --info: var(--secondary);
    --warning: var(--accent);
    --danger: var(--primary-dark);
    --dark: var(--text);
}

/*
 * --------------------------------------------------------------------------
 * LAYOUT
 * --------------------------------------------------------------------------
 */
body {
    font-size: 1rem;
    background: var(--bf-body-bg);
    color: var(--bf-black);
    min-height: 100vh;
}

.hm-auth-theme .navbar {
    background: rgb(255 255 255 / 0.84);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--bf-light-grey);
}

.hm-auth-theme .navbar a {
    font-family: "Poppins", "Inter", sans-serif;
    color: var(--bf-black);
}

.hm-auth-theme .main {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 4rem);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hm-auth-login .container-fluid.main {
    padding: 0;
}

.hm-auth-login .main {
    min-height: 100vh;
    padding: 0;
}

.hm-auth-login .main > main {
    min-height: 100vh;
    padding: 0 !important;
}

.hm-auth-bg {
    width: 100%;
    min-height: 100vh;
    background-image: url('/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hm-auth-bg-inner {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.hm-auth-theme .card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--bf-light-grey);
    box-shadow: var(--shadow-card);
}

.hm-auth-theme .hm-auth-card {
    background-color: rgb(255 255 255 / 0.92);
}

.hm-auth-theme .form-control,
.hm-auth-theme .form-select {
    border-radius: var(--radius-md);
    border-color: var(--bf-light-grey);
}

.hm-auth-theme .form-control:focus,
.hm-auth-theme .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgb(225 29 72 / 0.2);
}

.hm-auth-theme .btn-primary {
    border: none;
}

.hm-auth-theme .btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.hm-auth-theme .btn-outline-primary:hover,
.hm-auth-theme .btn-outline-primary:focus {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/*
 * --------------------------------------------------------------------------
 * PASSWORDS
 * --------------------------------------------------------------------------
 */
div#pass-meter {
    display: flex;
    flex-direction: column-reverse;
}

div#pass-meter .segment {
    display: block;
    background: var(--bf-white);
    border: 1px solid var(--bf-light-grey);
    height: 9px;
    width: 30px;
}

div#pass-meter .segment:last-child {
    margin-right: 0;
}

div#pass-meter.good .segment {
    background-color: var(--bf-success);
    border-color: var(--bf-success);
    border-bottom: 1px solid var(--bf-white);
}

div#pass-meter.warn .segment {
    background-color: var(--warning);
    border-color: var(--warning);
    border-bottom: 1px solid var(--bf-white);
}

div#pass-meter.bad .segment {
    background-color: var(--danger);
    border-color: var(--danger);
}

div#pass-meter.str-1 .segment:nth-child(2),
div#pass-meter.str-1 .segment:nth-child(3),
div#pass-meter.str-1 .segment:nth-child(4) {
    background-color: var(--bf-white);
    border-color: var(--bf-light-grey);
}

div#pass-meter.str-2 .segment:nth-child(3),
div#pass-meter.str-2 .segment:nth-child(4) {
    background-color: var(--bf-white);
    border-color: var(--bf-light-grey);
}

div#pass-meter.str-3 .segment:nth-child(4) {
    background-color: var(--bf-white);
    border-color: var(--bf-light-grey);
}

#pass-suggestions {
    text-align: center;
    color: var(--bf-grey);
    font-size: 0.8rem;
    margin-top: -15px;
    margin-bottom: 10px;
    min-height: 2.5rem;
}

.pass-match-wrap {
    display: flex;
    align-content: center;
    justify-content: center;
    width: 53px;
}

.pass-match,
.pass-not-match {
    display: inline-block;
    margin: auto;
    font-size: 20px;
    font-weight: bold;
    color: var(--bf-success);
}

.pass-not-match {
    color: var(--danger);
}


.collapsible .signal {
    position: absolute;
    right: 5px;
}

/* Eye positioning in inputs */
.pass-eye-parent {
    position: relative;
}

.pass-eye {
    position: absolute;
    color: var(--bf-grey);
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    cursor: pointer;
}

.pass-eye-register {
    right: 20px;
}

/*
 * --------------------------------------------------------------------------
 * ALERTS
 * --------------------------------------------------------------------------
 */

#alerts-wrapper {
    position: absolute;
    top: 30px !important;
    right: 1% !important;
    left: auto !important;
    min-width: 20rem !important;
    z-index: 9999;
}

#alerts-wrapper .alert {
    background: var(--bf-white);
    border: 1px solid var(--bf-light-grey);
    opacity: 0.95;
}

#alerts-wrapper .alert-info {
    border-bottom: 3px solid var(--info);
}

#alerts-wrapper .alert-warning {
    border-bottom: 3px solid var(--warning);
}

#alerts-wrapper .alert-danger {
    border-bottom: 3px solid var(--danger);
}

#alerts-wrapper .alert-success {
    border-bottom: 3px solid var(--bf-success);
}

/*#alerts-wrapper button {*/
/*    border: none;*/
/*    background-color: transparent;*/
/*    font-size: 1.5rem;*/
/*    position: absolute;*/
/*    right: 5px;*/
/*}*/

.text-info {
    color: var(--info);
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--warning);
}

.text-success {
    color: var(--bf-success);
}

@media (max-width: 768px) {
    .hm-auth-theme .main {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .hm-auth-bg-inner {
        padding: 1rem 0.5rem;
    }

    .hm-auth-theme .navbar a {
        font-size: 1.2rem !important;
    }
}
