/* RESET */

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* FULL PAGE */

body {
    height: 100dvh;
    overflow: hidden;
    background: white;
}

/* MAIN CONTAINER */

#loginmain {
    width: 100%;
    height: 100dvh;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    overflow: hidden;

    padding:
        env(safe-area-inset-top)
        15px
        env(safe-area-inset-bottom);
}

/* LOGIN AREA */

#loginform {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
}

/* INNER CONTENT */

#loginform .row {
    width: 100%;
    max-width: 420px;

    margin: 0 auto;
}

/* REMOVE BOOTSTRAP SPACING */

.my-4,
.mb-4 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* LOGO */

#loginform img {
    width: 100%;
    max-width: min(55vw, 320px);
    height: auto;

    margin-bottom: 20px;
}

/* FORM */

.loginform {
    width: 100% !important;
}

/* INPUT SPACING */

.input-group {
    margin: 12px 0 !important;
}

/* BUTTON */

#loginbtn {
    margin-top: 15px !important;
    margin-bottom: 15px !important;
}


#loginbtn{
    color: white;
    background-color: #a10f2b;
    border-color: #a10f2b;
    padding: 15px 45px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 1em;
    border-radius: 20px;
    width: fit-content;
}

#welcomebtn {
    width: 100%;
    padding: 15px 45px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 1em;
    border-radius: 20px;

}

#welcomebtn,
#welcomebtn:disabled {
    background-color: #e2c332;
    border-color: #e2c332;
    color: #000;
    opacity: 1;
}


#loginbtn:hover {
    background-color: #7e0c22;
    border-color: #7e0c22;
    border-color: #7e0c22;

}

/* FOOTER */

.bottom-row {
    width: 100%;

    display: flex;
    flex-wrap: wrap;

    justify-content: center;
    align-items: center;

    gap: 12px;

    padding: 10px 0;

    font-size: 12px;

    flex-shrink: 0;
}

/* SMALL HEIGHT DEVICES */

@media (max-height: 750px) {

    #loginform img {
        max-width: 220px;
    }

    .input-group {
        margin: 8px 0 !important;
    }

    #loginbtn,
    #welcomebtn {
        padding: 10px 24px;
        font-size: 14px;
    }

    .bottom-row {
        font-size: 10px;
        gap: 8px;
    }
}

/* VERY SHORT PHONES */

@media (max-height: 620px) {

    #loginform img {
        max-width: 170px;
        margin-bottom: 10px;
    }

    .input-group {
        margin: 5px 0 !important;
    }

    .form-check {
        font-size: 12px;
    }

    .bottom-row {
        font-size: 9px;
    }
}


/* =========================================
   REGISTER PAGE
========================================= */

.register-page {
    overflow: hidden;
}

/* MAIN LAYOUT */

.register-page #loginmain {
    height: 100dvh;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    overflow: hidden;

    padding:
        env(safe-area-inset-top)
        15px
        env(safe-area-inset-bottom);
}

/* CONTENT AREA */

.register-page #loginform {
    flex: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;

    overflow: hidden;
}

/* INNER WRAPPER */

.register-page #loginform > * {
    width: 100%;
    max-width: 650px;
}

/* HEADER */

.top-header {
    margin-bottom: 10px;
}

/* LOGO */

.logo-img {
    height: auto;
    width: auto;

    max-height: clamp(40px, 7vh, 65px);
    max-width: 100%;

    object-fit: contain;
    display: block;
}
/* HEADER ROW */

.top-bar {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;

    width: 100%;
    max-width: 650px;
}

/* BACK ARROW */

.back-arrow {
    font-size: 22px;
    cursor: pointer;
    color: #a10f2b;;
    flex: 0 0 auto;
}

.back-arrow:hover {
    color: #7e0c22;
}

/* LOGO CENTER AREA */

.logo-wrap {
    flex: 1;

    display: flex;
    justify-content: center;
}

/* LOGO */

.logo-img {
    max-height: clamp(40px, 7vh, 65px);
    width: auto;
}



/* WELCOME BUTTON */

#welcomebtn {
    margin: 10px 0 !important;
}

/* HEADINGS */

.register-page h3 {
    font-size: clamp(18px, 3vw, 28px);
    margin-bottom: 10px;
}

/* HINT BOX */

#userHints {
    margin-bottom: 10px;
}

.list-group-item {
    padding: 8px 12px;
    font-size: 13px;
}

/* FORM */

#eboregform {
    width: 100%;
}

/* FORM ROWS */

#eboregform .row {
    margin-bottom: 10px !important;
    align-items: center;
}

/* LABELS */

#eboregform .col-4 {
    font-size: 14px;
}

/* INPUTS */

.form-control {
    height: calc(1.5em + .5rem + 2px);
    padding: .25rem .5rem;
    font-size: 14px;
}

/* REGISTER BUTTON */

#loginbtn {
    margin: 10px 0 !important;
}

/* FOOTER */

.register-page .bottom-row {
    flex-shrink: 0;

    display: flex;
    flex-wrap: wrap;

    justify-content: center;
    align-items: center;

    gap: 10px;

    width: 100%;

    padding: 10px 0;

    font-size: 11px;
}

/* SHORT PHONES */

@media (max-height: 820px) {

    .logo-img {
        max-height: 45px;
    }

    .list-group-item {
        padding: 6px 10px;
        font-size: 12px;
    }

    #eboregform .row {
        margin-bottom: 6px !important;
    }

    .form-control {
        height: 34px;
        font-size: 13px;
    }

    #welcomebtn,
    #loginbtn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* VERY SHORT DEVICES */

@media (max-height: 700px) {

    .logo-img {
        max-height: 36px;
    }

    .back-arrow {
        font-size: 18px;
        top: 10px;
    }

    .register-page h3 {
        font-size: 18px;
    }

    .list-group-item {
        padding: 4px 8px;
        font-size: 11px;
    }

    #eboregform .row {
        margin-bottom: 4px !important;
    }

    .form-control {
        height: 30px;
        font-size: 12px;
    }

    #eboregform .col-4 {
        font-size: 12px;
    }

    .bottom-row {
        font-size: 9px;
    }
}

/* =========================================
   RESET PASSWORD PAGE
========================================= */

.reset-page {
    overflow: hidden;
}

/* MAIN LAYOUT */

.reset-page #loginmain {
    height: 100dvh;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    overflow: hidden;

    padding:
        env(safe-area-inset-top)
        15px
        env(safe-area-inset-bottom);
}

/* MAIN CONTENT */

.reset-page #loginform {
    flex: 1;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: flex-start;

    overflow: hidden;

    width: 100%;
}

/* HEADER */

.reset-page .top-bar {
    width: 100%;
    max-width: 500px;

    display: grid;
    grid-template-columns: 40px 1fr 40px;

    align-items: center;

    margin-bottom: 30px;
}

/* BACK BUTTON */

.reset-page .back-arrow {
    font-size: 22px;
    cursor: pointer;
}

/* LOGO */

.reset-page .logo-wrap {
    display: flex;
    justify-content: center;
}

.reset-page .logo-img {
    max-height: clamp(40px, 7vh, 65px);

    width: auto;
    height: auto;

    object-fit: contain;

    display: block;
}

/* FORM CONTENT */

.reset-content {
    width: 100%;
    max-width: 450px;

    display: flex;
    flex-direction: column;

    justify-content: center;

    flex: 1;
}

/* ERROR AREA */

.error-area {
    min-height: 20px;
    margin-bottom: 10px;
}

.loginerror{
    color: red;
    font-size: 12px;
}

/* FORM */

.reset-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* FORM ROW */

.form-row-custom {
    display: flex;
    flex-direction: column;

    text-align: left;
    gap: 8px;
}

/* LABEL */

.form-row-custom label {
    font-size: 14px;
    margin: 0;
}

/* INPUT */

.reset-page .form-control {
    height: 42px;
    font-size: 14px;
}

/* BUTTON */

.reset-page #loginbtn {
    margin: 0 auto !important;
}

/* FOOTER */

.reset-page .bottom-row {
    width: 100%;

    display: flex;
    flex-wrap: wrap;

    justify-content: center;
    align-items: center;

    gap: 10px;

    padding: 10px 0;

    font-size: 11px;

    flex-shrink: 0;
}

/* SHORT DEVICES */

@media (max-height: 750px) {

    .reset-page .logo-img {
        max-height: 42px;
    }

    .reset-form {
        gap: 12px;
    }

    .reset-page .form-control {
        height: 36px;
        font-size: 13px;
    }

    .reset-page #loginbtn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* VERY SHORT DEVICES */

@media (max-height: 620px) {

    .reset-page .top-bar {
        margin-bottom: 10px;
    }

    .reset-page .logo-img {
        max-height: 34px;
    }

    .reset-page .back-arrow {
        font-size: 18px;
    }

    .reset-page .form-control {
        height: 32px;
        font-size: 12px;
    }

    .reset-page .bottom-row {
        font-size: 9px;
    }
}