:root {
    --main-color: #dd4897;
    /* Same color as main-color but for SVG and images */
    --main-color-filter: brightness(0) saturate(100%) invert(64%) sepia(69%) saturate(6594%) hue-rotate(303deg) brightness(93%) contrast(85%);
    --main-color-hover: #c12f7d;
    --secondary-color: #0885f4;
    --secondary-color-filter: brightness(0) saturate(100%) invert(36%) sepia(96%) saturate(1058%) hue-rotate(181deg) brightness(97%) contrast(99%);
    --text-color: var(--secondary-color);
    --login-input-bg: #e0f5f8;
    --white: #fff;
    --placeholder-color: rgba(24, 177, 247, 0.5);
    --info-color: var(--main-color);
}

@font-face {
    font-family: 'PP Pangram Sans Rounded';
    font-weight: normal;
    /* <=> normal */
    src:
        local('PP Pangram Sans Rounded'),
        url('/fonts/PPPangramSansRounded-CompactRegular.woff2') format('woff2'),
        url('/fonts/PPPangramSansRounded-CompactRegular.woff') format('woff'),
        url('/fonts/PPPangramSansRounded-CompactRegular.otf') format('opentype');
}

@font-face {
    font-family: 'PP Pangram Sans Rounded';
    font-weight: 500;
    /* si entre normal et bold, je ne suis pas sûr pour ce fichier en particulier */
    src:
        local('PP Pangram Sans Rounded'),
        url('/fonts/PPPangramSansRounded-Medium.woff2') format('woff2'),
        url('/fonts/PPPangramSansRounded-Medium.woff') format('woff'),
        url('/fonts/PPPangramSansRounded-Medium.otf') format('opentype');
}

@font-face {
    font-family: 'PP Pangram Sans Rounded';
    font-weight: bold;
    /* <=> bold */
    src:
        local('PP Pangram Sans Rounded'),
        url('/fonts/PPPangramSansRounded-Bold.woff2') format('woff2'),
        url('/fonts/PPPangramSansRounded-Bold.woff') format('woff'),
        url('/fonts/PPPangramSansRounded-Bold.otf') format('opentype');
}

body {
    font-family: 'PP Pangram Sans Rounded', sans-serif;
    font-weight: 400;
    overflow: hidden;
    font-size: 1em;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-image: url("/assets/background/sphere-academy.jpg");
}

input, button {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.bottomLogoContainer {
    text-align: center;
    margin-bottom: 2em;
}

.bottomLogoContainer a {
    background: none;
}

.bottomLogo {
    width: 50%;
    cursor: pointer;
}

.leftPanel {
    position: absolute;
    background-color: var(--white);
    height: 100%;
    width: 70ch;
    text-align: left;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    z-index: 10000;
}

.container {
    width: 75%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1lh;
}

.relative {
    position: relative;
}

.title {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 40px;
}

.field-group {
    display: grid;
    grid-template-columns: 1fr 50px;

    height: 52px;
    width: 100%;
    margin-block: 1em;
    box-sizing: border-box;
    background-color: var(--login-input-bg);
    border-radius: 12px;
    
    color: var(--text-color);
    font-weight: 400;
    font-size: 18px;
}

.field-group:focus-within {
    outline: solid 1px var(--text-color);
}

.field-group > input {
    border: none;
    background-color: transparent;
    outline: none;
    line-height: 50px;
    padding: 0 0 2px 12px;
}

.field-group > .icon {
    width: 40%;
    margin: auto;
    filter: var(--secondary-color-filter);
}

input[type='password'] {
    letter-spacing: 0px;
}

input[type='submit'] {
    cursor: pointer;
}

/* Change default autofill colors */
.no-autofill:-webkit-autofill,
.no-autofill:-webkit-autofill:hover,
.no-autofill:-webkit-autofill:focus,
.no-autofill:-webkit-autofill:active {
    -webkit-text-fill-color: var(--text-color) !important;
    transition: background-color 5000s ease-in-out 5000s;
}

::placeholder {
    /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: var(--placeholder-color);
    opacity: 1;
    /* Firefox */
}

:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: var(--placeholder-color);
}

::-ms-input-placeholder {
    /* Microsoft Edge */
    color: var(--placeholder-color);
}

input[type='checkbox'] {
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--login-input-bg);
    margin: 0;
    padding: 0;
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 0.12em solid currentColor;
    border-radius: 100%;
    transform: translateY(-0.075em);
    display: grid;
    place-content: center;
    align-self: center;
    outline: none;
}

input[type="checkbox"]::before {
    content: "";
    width: 0.55em;
    height: 0.55em;
    border-radius: 100%;
    transform: scale(0);
    transition: 120ms transform ease-in;
    background-color: currentColor;
}

input[type="checkbox"]:checked::before {
    transform: scale(1);
}

a {
    font-style: normal;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    padding-bottom: 15px;
    height: 20px;
    display: inline-block;
}

a.underline::after {
    content: '';
    display: inline-block;
    position: relative;
    bottom: 20px;
    width: 100%;
    height: 100%;
    background-image: url('/assets/underline/ligne_pointillee_loop.svg');
    background-repeat: repeat-x;
    background-position-y: 30px;
    background-size: 110px 20px;
    background-clip: padding-box;
    padding-bottom: 15px;
    transition: 100ms ease-in;
    filter: var(--main-color-filter);
}

a.underline:hover::after {
    background-position-y: 18px;
}

a:link.underline {
    color: var(--main-color);
}

a:visited.underline {
    color: var(--main-color);
}

.forgotPassword {
    text-align: right;
}

.button {
    border-radius: 12px;
    height: 60px;
    background-color: var(--main-color);
    font-weight: 500;
    font-size: 24px;
    color: var(--white);
    padding: 0;
    transition: 100ms;
    padding-bottom: 5px;
    line-height: 60px;
    text-align: center;
    width: 100%;
    border: none;
    margin-block: 1em;
}

.button:hover {
    background-color: var(--main-color-hover);
}

.secondaryText {
    font-weight: 400;
    font-size: 16px;
    color: #737373;
}

.textError {
    color: var(--main-color) !important;
}

.centered {
    text-align: center;
}

.secondaryTitle {
    color: var(--secondary-color);
}

.blank {
    height: 20px;
    background-color: white;
}

.sectionTitle {
    font-weight: 400;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: white;
    text-align: center;
}

.linkContainer {
    display: flex;
    justify-content: flex-end;
    padding-right: 5%;
}

.link {
    background-color: transparent;
    font-size: 16px;
    font-weight: bold;
    color: #000;
    border: none;
    margin-block: 1em;
}

.link:focus {
    outline: none;
}

.link:hover {
    text-decoration: var(--main-color) underline;
}

.blackLink:hover {
    text-decoration: black underline;
}

.info {
    font-weight: 500;
    font-size: 18px;
    color: var(--info-color);
    margin-bottom: 2em;
}

.bottomLinkContainer {
    display: flex;
    justify-content: center;
    margin-top: 1em;
}

.bottomLink {
    cursor: pointer;
    background: none !important;
    color: #959595;
    text-align: center;
    font-size: 1em;
    margin-bottom: 1rem;
}

.bottomLink:hover {
    color: var(--text-color);
}

.darken {
    opacity: 0.7;
}

.section {
    background-color: var(--secondary-color);
    transition: background-color 0.3s ease-in-out;
    padding-block: 3px;
    padding-inline: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    cursor: pointer;
}

.sectionText {
    font-weight: 400;
    font-size: 16px;
    color: #f3f3f3;
}

.sectionBody {
    overflow: hidden;
    transition: height 0.3s ease-in-out;
}

button {
    width: 100%;
    height: 60px;
    background-color: var(--main-color);
    font-weight: 500;
    font-size: 24px;
    color: var(--white);
    padding: 0;
    transition: 100ms;
    padding-bottom: 5px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: var(--main-color-hover);
}

/* Responsive */
@media screen and (max-width: 70ch),
screen and (max-device-width: 70ch) {
    body {
        overflow: scroll;
    }

    .leftPanel {
        width: 100%;
        position: relative;
    }

    .container {
        text-align: center;
        width: 85%;
    }

    .bottomLogo {
        width: 30%;
        content: url('/assets/icons/logo_sphere.png');
    }
}

@media screen and (max-width: 600px),
screen and (max-device-width: 600px) {
    .container {
        width: 75%;
    }

    a {
        background-image: none;
    }
}

/* width */
::-webkit-scrollbar {
    width: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #d6d6d6;
    border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: rgb(200, 200, 200);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	white-space: nowrap;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
}