/* BEGIN RESET CSS */
/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
/* END RESET CSS */

:root {
    --background-plain-grey: #fafafa;
    --background-contrast-grey: #eeeeee;
    --background-contrast-grey-hover: #e0e0e0;
    --border-plain-grey: #3a3a3a;
    --text-default-grey: #666666;
    --text-inverted: #fff;
    --background-main: #ffcc00;
    --background-main-hover: #ffbb00;
    --text-error: #f44336;
}

html {
    box-sizing: border-box;
    font-family: "Outfit", sans-serif;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

.app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
}


/* HEADER================================================= */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    width: 100%;
    box-shadow: 0 0 10px var(--background-contrast-grey);
    background-color: #fff;
    padding: 2em;
}

.header a {
    text-decoration: none;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 1em;
    cursor: pointer;
    color: #000;
}


.header__logo img {
    display: flex;
}

.header__logo h1 {
    margin: 0;
}

@media (max-width: 768px) {
    .header {
        justify-content: center;
    }
}


/* MAIN===================================================  */

.content {
    display: flex;
    flex-direction: column;
    padding: 1em;
    flex: 1;
}

.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1em;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    padding-block: 2em;
    padding-inline: 3rem;
    background-color: var(--background-plain-grey);
    min-width: 35rem;
    max-width: 45rem;
    border-radius: 0.25rem;
}

.form p {
    color: var(--text-default-grey);
}

.form h1 {
    font-size: 1.3rem;
    line-height: 1.75rem;
}

.form h2 {
    font-size: 1.1rem;
    font-weight: 500;
}

.form .form-title {
    margin-bottom: 1em;
    font-size: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.infos-group h2 {
    color: var(--text-default-grey);
}

.infos-group ul {
    padding-inline-start: 2rem;
    color: var(--text-default-grey);
    font-size: 0.9rem;
}

input {
    background-color: var(--background-contrast-grey);
    border-radius: 0.25rem 0.25rem 0 0;
    box-shadow: inset 0 -2px 0 0 var(--border-plain-grey);
    color: var(--text-default-grey);
    font-size: 1rem;
    border: 0;
    line-height: 1.5rem;
    padding: 0.5rem 1rem;
    width: 100%;
}

input[type="text"]:hover,
input[type="password"]:hover {
    background-color: var(--background-contrast-grey-hover);
}

input[type="text"]:focus-visible,
input[type="password"]:focus-visible {
    background-color: var(--background-contrast-grey-hover);
    box-shadow: inset 0 -2px 0 0 var(--background-main-hover);
}

button, input[type=submit], .password-toggle {
    color: var(--text-inverted);
    background-color: var(--background-main);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5rem;
    min-height: 2.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    width: -moz-fit-content;
    width: fit-content;
    transition: all 0.2s ease-in-out;
}

.btn-full {
    width: 100%;
}

#social-cas { text-decoration: none; }

.btn-cas {
    display: flex;
    align-items: center;
    gap: 0.5em;
    line-height: 1rem;
    padding: 0.5rem 1rem;
    display: inline-flex;
    width: -moz-fit-content;
    width: fit-content;
    background-color: var(--background-main-hover);
}


.btn-cas p {
    color: var(--text-inverted);
}

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

.btn-cas p {
    color: var(--text-inverted);
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
}

.btn-cas p b {
    font-weight: 900;
}

.btn-cas img {
    height: 2rem;
    margin: 0.5rem;
}

.btn-outlined {
    color: var(--background-main);
    background-color: transparent;
    border: 1px solid var(--background-main);
}

button:hover {
    cursor: pointer;
    color: var(--text-inverted);
    background-color: var(--background-main-hover);
}

hr {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-top: 1px solid var(--background-contrast-grey);
    color: var(--border-plain-grey);
    font-weight: 600;
    overflow: visible;
    text-align: center;
    height: 5px;
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.hr-text::after {
    background: var(--background-plain-grey);
    content: attr(data-content);
    position: sticky;
    padding-inline: 1em;
    padding-bottom: 8px;
}

.error {
    display: flex;
    flex-direction: column;
    border: 0.1em solid var(--text-error);
    border-radius: 0.25rem;
}

.error::before {
    content: "Erreur";
    font-weight: 600;
    color: var(--text-inverted);
    padding: 0.5em 1em;
    background-color: var(--text-error);
}

.error p {
    color: var(--border-plain-grey);
    padding: 1em;
    font-weight: 600;
}

/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-width: 320px) and (max-width: 600px) {
    .form {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding: 1em;
    }
}


/* FOOTER================================================= */
.footer {
    display: flex;
    background-color: white;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 7.5rem 0.5rem 6.5rem;
    border-top: 0.15em solid var(--background-main);
    position: relative;
    bottom: 0;
}

.logo img {
    width: 6.5625rem;
    height: 6.5625rem;
}

.links {
    display: flex;
    gap: 0.5rem;
}

.link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    color: var(--border-default-grey);
}

.link:hover {
    color: var(--border-plain-grey);
}

.text {
    color: inherit;
    font-size: 0.875rem;
    font-family: Outfit;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5rem;
    word-wrap: break-word;
}

.indicator {
    width: 1rem;
    height: 1rem;
    position: relative;
}

@media (max-width: 767px) {
    .footer {
        padding: 1rem;
    }

    .logo img {
        width: 5rem;
        height: 5rem;
    }

    .links {
        flex-direction: column;
        gap: 0.1rem;
    }
}

.text {
    line-height: 1.25rem;
}

.indicator {
    width: 0.75rem;
    height: 0.75rem;
}

.indicator > div {
    width: 0.5rem;
    height: 0.5rem;
    left: 0.125rem;
    top: 0.125rem;
}

.helper-text {
    font-size: 0.8em;
    color: var(--text-default-grey);
}

.password-input-container {
    display: flex;
    flex-direction: row;
}

input[type="password"] {
    border-top-right-radius: 0;
}

.password-toggle {
    height: 100%;
    aspect-ratio: 1/1;
    border: 0;
    padding: 0.5rem;
    border-top-right-radius: 0.25rem;
}

.hidden {
    display: none;
}
