@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --bleu-intersport: #164194;
    --grey-2: #B3B3B3;
    --green: #348437;
    --disable-grey: #A9A9A9;
    --mud-palette-primary: #164194;
    --heading-blue: #2C3E7E;
    --dark-blue-intersport: #153167;
    --button-disable-grey: #F1F1F1;
}

html, body {
    font-family: 'Montserrat','Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #164196;
}

.btn-primary {
    color: #fff;
    background-color: #164196;
    border-color: #082D78;
}

    .btn-primary:hover {
        color: #fff;
        background-color: #082D78;
        border-color: #082D78;
    }

.btn-secondary {
    color: #fff;
    background-color: #666666;
    border-color: #F5F5F5;
}
    .btn-secondary:hover {
        color: #fff;
        background-color: #3C3C3B;
        border-color: #F5F5F5;
    }

.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;
        }


/* Styles communs pour les conteneurs */
.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    text-align: center;
}

/* Styles communs pour les headers */
.auth-header {
    margin-bottom: 20px;
}

/* Styles communs pour les formulaires */
.auth-form {
    width: 100%;
    max-width: 500px; /* Ajustez selon la largeur souhaitée */
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background: #fff;
    border-radius: 8px;
}

/* Styles pour les groupes de formulaire */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

/* Styles pour les liens de retour */
.return-link {
    margin-top: 15px;
}

/* Styles pour le logo */
.logo {
    width: 350px; /* Ajuster selon les besoins */
    height: auto;
}

/* Autres styles spécifiques */
.form-check-label {
    margin-left: 5px;
}

input[type=checkbox], input[type=radio] {
    accent-color: #164196;
    border-color: #082D78;
}

.form-links {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    text-align: center;
}

.home-header {
    margin-bottom: 20px;
}

.home-links {
    display: flex;
    flex-direction: column; /* Aligner verticalement */
    align-items: center; /* Centrer horizontalement */
    margin-top: 20px;
}

    .home-links a {
        margin: 5px;
        width: 250px; /* Ajustez la largeur selon vos préférences */
    }

.validation-summary-errors {
    text-align: left;
}

.text-danger {
    color: #E30613 !important;
}

.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;
}

.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;
    }

@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;
    }
}

.logo-login {
    position: absolute;
    width: 146px;
    height: 16px;
    flex-shrink: 0;
    z-index: 1;
    top: 33px;
    left: 38px;
}

.background-intersport-image {
    position: absolute;
    left: -400px;
    height: inherit
}

@media screen and (max-width: 1024px) {
    .background-section {
        display: none;
    }

    .auth-container {
        justify-content: center;
        position: relative;
    }

    .auth-container > section {
        width: 100%;
    }
}

.color-bleu-intersport {
    color: var(--bleu-intersport);
}

.text-font-weight-500 {
    font-weight: 500;
}

.text-font-size-14px {
    font-size: 14px;
}

/*Primary button style*/

.mud-intersport-button-primary {
    background-color: var(--bleu-intersport);
    color: white;
    text-align: center;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    padding: 8px 16px;
    min-height: 36px;
    border-radius: 100px;
    border: 0;
    margin-top: 15px;
}

.mud-intersport-button-primary:hover {
    background-color: var(--dark-blue-intersport);
    box-shadow: none;
}

.mud-intersport-button-primary:disabled {
    background-color: var(--button-disable-grey);
}

.check-box-custom {
    cursor: pointer;
    color: var(--bleu-intersport);
    width: 16px;
    height: 16px;
    margin-right: 12px;
}

.password-input-container {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.password-input-container:focus-within {
    box-shadow: 0 0 0 .2rem rgba(0,123,255,.25);
    outline: 0;
    border-color: #80bdff;
    color: #495057;
    border-radius: .25rem
}

.password-input-container input {
    border: none;
}

.password-input-container input:focus {
    outline: none;
    box-shadow: none;
    border-color: none;
}

.password-input-container button {
    border:none;
}

.password-input-container button:hover {
    background-color: rgba(0,123,255,.25);
}

.password-input-container button:focus {
    outline: none;
    box-shadow: none;
    border-color: none;
}

.password-input-container input:focus {
    outline: none;
    box-shadow: none;
    border-color: none;
}

.register-container {
    width: 400px;
}

.login-form {
    width: 100%;
    min-width: 240px; /* Ajustez selon la largeur souhaitée */
    background-color: transparent;
}

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