:root {
    --box-bckg: #fff;
    --b-color: #fff;
    --b-bckg: #006979;
    --b-border: #006979;
    --b-color-hov: #fff;
    --b-bckg-hov: #01454F;
    --b-border-hov: #01454F;
    --b-color-act: #fff;
    --b-bckg-act: #01454F;
    --b-border-act: #01454F;
    --h2-space: 1px;
}

@media screen and (min-width: 900px){
    :root {
        --h2-space: 24px;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
    min-width: 0;
}

:focus-visible{
    outline-color: #92CED3 ;
}

@font-face {
    font-family: "Marianne";
    font-style: normal;
    font-weight: 400;
    font-display: auto;
    src: url("https://cdn.reseau-canope.fr/static-assets/Fonts/Marianne/Marianne-Regular.woff2") format("woff2"),
        url("https://cdn.reseau-canope.fr/static-assets/Fonts/Marianne/Marianne-Regular.woff") format("woff");
}

@font-face {
    font-family: "Marianne";
    font-style: normal;
    font-weight: 500;
    font-display: auto;
    src: url("https://cdn.reseau-canope.fr/static-assets/Fonts/Marianne/Marianne-Medium.woff2") format("woff2"),
        url("https://cdn.reseau-canope.fr/static-assets/Fonts/Marianne/Marianne-Medium.woff") format("woff");
}

@font-face {
    font-family: "Marianne";
    font-style: normal;
    font-weight: 700;
    font-display: auto;
    src: url("https://cdn.reseau-canope.fr/static-assets/Fonts/Marianne/Marianne-Bold.woff2") format("woff2"),
        url("https://cdn.reseau-canope.fr/static-assets/Fonts/Marianne/Marianne-Bold.woff") format("woff");
}

html {
    font-size: 100%;
    height: 100%;
}

body {
    background-color: #F0F7F7;
    font: normal 400 1rem/1.5rem Marianne;
    margin: 0;
}

h2 {
    text-align: center;
    margin: 0 0 var(--h2-space) 0;
}

/* LOGIN */
.login.cas-tne,
.login.cas-tne #content,
.login.cas-tne .container {
    min-height: 100vh;
}

.login.cas-tne {
    color: #1f1f1f;
}

.login.cas-tne a {
    color: #006979;
}

.login.cas-tne .container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.cas-box__wrapper {
    width: 100%;
}

.cas-box {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(320px, 1fr);
    grid-template-areas:
        "header intro"
        "header form"
        "footer footer";
    width: min(100%, 1180px);
    margin: 0 auto;
    background: var(--box-bckg);
    box-shadow: 0 16px 48px rgba(0, 67, 76, 0.12);
}

.cas-box__header,
.cas-box__intro,
.cas-box__form {
    background: #e5f0f1;
}

.cas-box__header {
    grid-area: header;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 460px;
}

.cas-box__header::before {
    content: "TNE";
    display: grid;
    place-items: center;
    width: 172px;
    height: 172px;
    border-radius: 50%;
    background: #006979;
    color: #fff;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 0;
}

.cas-box__intro {
    grid-area: intro;
    padding: 88px 88px 24px 40px;
}

.cas-box__intro h1 {
    margin: 0 0 16px;
    color: #01454f;
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.1;
}

.cas-box__intro p {
    margin: 0;
}

.cas-box__form {
    grid-area: form;
    padding: 0 88px 88px 40px;
}

.cas-box__form h2 {
    color: #01454f;
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.25;
    text-align: left;
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.form__group label {
    font-weight: 500;
}

.form__group input[type="mail"],
.form__group input[type="password"] {
    width: 100%;
    height: 44px;
    border: 1px solid #7faeb4;
    border-radius: 4px;
    padding: 0 12px;
    background: #fff;
    color: #1f1f1f;
    font: inherit;
}

.form__group input:focus {
    outline: 3px solid #92ced3;
    outline-offset: 1px;
}

.form__msg {
    margin: 2px 0 0;
    font-size: 0.875rem;
}

.notification {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-left: 4px solid #b00020;
    background: #fbe9ec;
    color: #5c0011;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid var(--b-border);
    border-radius: 4px;
    padding: 10px 18px;
    background: var(--b-bckg);
    color: var(--b-color) !important;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover,
.btn:focus {
    border-color: var(--b-border-hov);
    background: var(--b-bckg-hov);
}

.btn--width-full {
    width: 100%;
}

.btn--icon-arrow::after {
    content: "";
    width: 0.55em;
    height: 0.55em;
    margin-left: 0.75em;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.cas-box__footer {
    grid-area: footer;
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 24px 40px;
    background: #fff;
    border-top: 1px solid #d9e8ea;
}

.cas-box__footer img {
    width: 140px;
    max-width: 30%;
    height: auto;
}

.cas-box__footer p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.35;
}

@media (max-width: 900px) {
    .login.cas-tne .container {
        padding: 0;
    }

    .cas-box {
        display: block;
        min-height: 100vh;
        box-shadow: none;
    }

    .cas-box__intro,
    .cas-box__form {
        padding: 24px;
    }

    .cas-box__intro {
        padding-top: 40px;
    }

    .cas-box__intro h1 {
        font-size: 2rem;
    }

    .cas-box__footer {
        display: block;
        padding: 24px;
    }

    .cas-box__footer img {
        max-width: 160px;
        margin-bottom: 14px;
    }
}

/* LOGOUT */
.cas-logout,
.cas-logout #content {
    height: 100%;
    background: #fff;
}

.cas-logout__title {
    text-transform: none;
    font: normal 400 1.5rem/2rem Marianne;
    margin-bottom: 10px;
}

.cas-logout__title:before {
    content: "";
    display:block;
    margin-inline: auto;
    margin-bottom: 10px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #E5F0F1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='49' viewBox='0 0 48 49' fill='none'%3E%3Cpath d='M15 24.7816L21 30.7816L33 18.7816M44 24.7816C44 35.8273 35.0457 44.7816 24 44.7816C12.9543 44.7816 4 35.8273 4 24.7816C4 13.7359 12.9543 4.78162 24 4.78162C35.0457 4.78162 44 13.7359 44 24.7816Z' stroke='%23006979' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center center;
}

.cas-logout p {
    padding-inline: 16px;
}
.cas-logout p + p {
    margin-top: 16px;
}

.cas-logout__content {
    position: relative;
    align-content: center;
    text-align: center;
    height: 100%;
}
.cas-logout__logo {
    padding-block: 16px;
    position: absolute;
    top: 0;
    width: 100%;
    border-bottom: solid 1px #ddd;
}
.cas-logout__logo > svg {
    display: block;
    margin: 0 auto;
    transform: scale(0.71);
    transition: all 0.25s;
}

@media (min-width: 425px) {
    .cas-logout__logo {
        padding-block: 24px
    }
    .cas-logout__logo > svg {
        transform: scale(1);
    }
}
