﻿/*
    This file is to show how CSS and other static resources (such as images) can be
    used from a library project/package.
*/

@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

.auth-prompt {
    margin-left: 20%;
    width: 60%;
    padding-top: 20%;
    display: inline-grid;
}

.center-content-vertical {
    display: flex;
    align-items: center;
}

.spread-content {
    display: flex;
    justify-content: space-between;
}

label {
    margin: 0px;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

#side-nav {
    overflow-y: scroll;
    height: auto;
    max-height: calc(100vh - (var(--mud-appbar-height) + 22px));
}

#content-wrapper {
    margin-top: 0 !important;
    padding: 0 400px 20px 140px !important;
    overflow-y: scroll;
    height: auto;
    max-height: calc(100vh - (var(--mud-appbar-height) + 50px));
}

/*@media screen and (min-width: 1440px) and (max-width: 4100px) {
    #side-nav {
        max-width: 500px;
    }

    #content-wrapper {
        max-width: 800px;
    }
}
*/
@media screen and (min-width: 500px) and (max-width: 1439px) {
    #content-wrapper {
        padding: 0 50px 20px 70px !important;
    }
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

        .main .top-row a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }

        .sidebar .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .sidebar .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .sidebar .nav-item a {
            color: #d7d7d7;
            border-radius: 4px;
            height: 3rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
        }

            .sidebar .nav-item a.active {
                background-color: rgba(255,255,255,0.25);
                color: white;
            }

            .sidebar .nav-item a:hover {
                background-color: rgba(255,255,255,0.1);
                color: white;
            }

.content {
    padding-top: 1.1rem;
}

.custom-alert-back .mud-alert-position {
    align-items: center !important;
}

.custom-alert .mud-icon-size-medium {
    width: 56px;
    height: 56px;
}

.custom-alert-message .mud-alert-message {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cas-mud-checkbox {
}

    .cas-mud-checkbox .mud-checkbox {
        pointer-events: none;
    }

    .cas-mud-checkbox .mud-checkbox-input {
        pointer-events: auto;
    }

    .cas-mud-checkbox .mud-typography-body1 {
        pointer-events: none;
        cursor: default;
    }

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.login-position {
    position: absolute;
    width: 62.5vw;
    height: 100vh;
    margin-left: 37.5vw;
    left: 0px;
    top: 0px;
}

.login-form {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 49vw;
    flex-direction: column;
    gap: 60px;
}

.login-text {
    font-family: 'Open Sans';
    font-style: normal;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    gap: 4px;
    width: 221px;
    height: 64px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.login-text-welcome {
    width: 147px;
    height: 36px;
    font-weight: 700;
    font-size: 32px;
    line-height: 36px;
    color: #3D5265;
    order: 0;
}

.login-text-additional {
    width: 221px;
    height: 24px;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.18px;
    color: rgba(61, 82, 101, 0.7);
    order: 1;
}


.login-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    gap: 22px;
    width: 300px;
    height: 132px;
    flex: none;
    order: 1;
    flex-grow: 0;
}

    .login-buttons .mud-button {
        width: 300px;
        height: 40px;
    }

    .login-buttons .mud-typography {
        width: 147px;
        height: 20px;
        font-family: 'Open Sans';
        font-style: normal;
        font-weight: 400;
        font-size: 12px;
        line-height: 20px;
        color: rgba(61, 82, 101, 0.7);
        flex: none;
        order: 1;
        flex-grow: 0;
    }

.login-button-interest-form {
    flex-direction: row;
    justify-content: flex-end;
    gap: 8px;
    order: 2;
}

    .login-button-interest-form .mud-typography {
        width: 188px;
        height: 20px;
        font-style: normal;
        font-weight: 600;
        font-size: 14px;
        line-height: 20px;
        display: flex;
        align-items: center;
        text-align: center;
        text-transform: uppercase;
        color: #00A17E;
        flex: none;
        order: 0;
        flex-grow: 0;
    }

.login-button-sign-in {
    flex-direction: row;
    gap: 8px;
    color: #3D5265;
    width: 300px;
    height: 40px;
    order: 0;
}

    .login-button-sign-in .mud-typography {
        width: 82px;
        height: 20px;
        font-style: normal;
        font-weight: 600;
        font-size: 14px;
        line-height: 20px;
        text-transform: uppercase;
        color: #FFFFFF;
    }

.login-reset-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 10px;
    width: 300px;
    height: 148px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

    .login-reset-form .mud-typography {
        width: 120px;
        height: 28px;
        font-family: 'Open Sans';
        font-style: normal;
        font-weight: 400;
        font-size: 14px;
        line-height: 28px;
        display: flex;
        align-items: center;
        color: #3D5265;
    }

    .login-reset-form .mud-input-control {
        margin-top: 0px;
    }

.login-reset-form-placeholder {
    font-family: 'Open Sans';
    width: 300px;
    letter-spacing: 0.5px;
}

.login-back {
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
    padding: 0px;
    gap: 8px;
    width: 56px;
    height: 20px;
    flex: none;
    order: 1;
    flex-grow: 0;
}

    .login-back .mud-icon-root {
        width: 17px;
        height: 17px;
    }

    .login-back .mud-typography {
        width: 103px;
        height: 20px;
        color: rgba(61, 82, 101, 0.7);
    }

.login-reset-password {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    width: 125px;
    height: 20px;
    order: 2;
}

    .login-reset-password .mud-icon-root {
        width: 17px;
        height: 17px;
    }

    .login-reset-password .mud-typography {
        width: 103px;
        height: 20px;
        color: rgba(61, 82, 101, 0.7);
    }

.login-email {
    display: flex;
    justify-content: center;
}

    .login-email a {
        font-family: 'Open Sans';
        font-style: normal;
        font-weight: 400;
        font-size: 12px;
        line-height: 20px;
        text-align: center;
        text-decoration-line: underline;
        color: rgba(61, 82, 101, 0.7);
    }

.login-img-logo {
    position: absolute;
    background-size: cover;
    width: 37.5vw;
    height: 100vh;
    left: 0px;
    top: 0px;
}

.login-success {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-direction: row;
}

.login-success-additional {
    width: 302px;
    height: 40px;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    letter-spacing: 0.5px;
    color: #3D5265;
    flex: none;
    order: 1;
    flex-grow: 0;
}

.login-dialog {
    display: flex;
    flex-direction: column;
    margin-left: 22px;
    align-items: center;
    padding: 32px 16px;
    gap: 24px;
    position: fixed;
    bottom: 6px;
}

    .login-dialog .mud-typography {
        font-family: 'Open Sans';
        font-style: normal;
        font-weight: 400;
        font-size: 14px;
        line-height: 20px;
        text-align: center;
        letter-spacing: 0.5px;
        color: #3D5265;
        flex: none;
        order: 1;
        flex-grow: 0;
    }

.login-try-again {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 8px;
    cursor: pointer;
    order: 2;
}

    .login-try-again .mud-typography {
        font-family: 'Open Sans';
        font-style: normal;
        font-weight: 400;
        font-size: 12px;
        line-height: 20px;
        display: flex;
        align-items: center;
        color: rgba(61, 82, 101, 0.7);
    }

    .login-try-again .mud-icon-root {
        width: 14px;
        height: 14px;
    }

.scan-iteration {
    background: #00A17E;
    border: 2px solid #00A17E;
    border-radius: 19px;
    height: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    color: #FFFFFF;
}

.error-form {
    margin-left: auto;
    margin-right: auto;
    margin-top: 10%;
    width: 30em;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    font-family: 'Open Sans';
    font-style: normal;
}

    .error-form h {
        font-style: normal;
        font-weight: 700;
        font-size: 32px;
        line-height: 36px;
        color: #3D5265;
    }

    .error-form p {
        font-weight: 400;
        font-size: 14px;
        line-height: 20px;
        letter-spacing: 0.5px;
        color: #3D5265;
    }

    .error-form svg {
        margin: 8px
    }

    .error-form a {
        text-decoration-line: underline;
        color: inherit;
    }

.error-form-additional {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

.custom-drawer-pointer {
    pointer-events: all !important;
}

.registry-page {
    position: absolute;
    overflow: hidden;
    left: 0;
    top: 0;
}

.registry-content {
    height: 100%;
}

.content-container {
    padding: 2rem;
    height: 100%; /* Default to 100% for smaller screens */
    overflow: hidden;
}

@media (min-width: 1080px) {
    .content-container {
        height: 100vh; /* Use 100vh for larger screens */
    }
}

.support-email {
    font-family: 'Open Sans';
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
    color: rgba(61, 82, 101, 0.7);
    padding: 8px;
    width: 100%;
    position: fixed; /* Fix the position relative to the viewport */
    bottom: 0; /* Align to the bottom */
    left: 75%; /* Center horizontally */
    transform: translateX(-50%); /* Adjust for the element's width */
    z-index: 1000; /* Ensure it appears above other content */
}

@media (max-width: 768px) {
    .support-email {
        position: relative; /* Position it relative to the document flow */
        margin-top: auto; /* Push it to the bottom of the content */
        padding: 8px;
        width: 100%; /* Ensure it spans the width of the container */
        text-align: center; /* Center the text */
        color: rgba(61, 82, 101, 0.7);
        transform: translateX(-75%);
        display: flex; /* Use flexbox for centering */
        justify-content: center; /* Center horizontally */
    }
}

@media (max-width: 600px) {
    .responsive-text {
        word-wrap: break-word !important;
    }
}