/* Pages d'authentification — vert #6FD1C0, violet #BE77FB, texte #64748B, Nunito Sans. */

body,
form.bg-white,
form.bg-white button,
form.bg-white input,
form.bg-white label,
form.bg-white a {
    font-family: "Nunito Sans", ui-sans-serif, system-ui, sans-serif !important;
}

html,
body.bg-gray-100 {
    overflow-x: hidden;
}

body.bg-gray-100 {
    background:
        radial-gradient(540px 440px at 108% -8%, rgba(111, 209, 192, 0.5), transparent 68%),
        radial-gradient(460px 400px at -12% 108%, rgba(190, 119, 251, 0.34), transparent 70%),
        radial-gradient(260px 220px at 12% 16%, rgba(190, 119, 251, 0.16), transparent 72%),
        #f5f9ff !important;
}

html.dark body,
.dark body.bg-gray-100 {
    background:
        radial-gradient(540px 440px at 108% -8%, rgba(111, 209, 192, 0.16), transparent 68%),
        radial-gradient(460px 400px at -12% 108%, rgba(190, 119, 251, 0.2), transparent 70%),
        #0b1220 !important;
}

form.bg-white {
    box-sizing: border-box;
    width: min(25rem, calc(100vw - 2rem)) !important;
    max-width: 25rem !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    border-radius: 1.75rem !important;
    padding: 2rem 1.75rem 1.6rem !important;
    background: #fff !important;
    color: #64748b !important;
    box-shadow: 0 28px 70px rgba(76, 29, 149, 0.1), 0 8px 24px rgba(15, 23, 42, 0.05) !important;
}

html.dark form.bg-white,
.dark form.bg-white {
    border-color: rgba(255, 255, 255, 0.06) !important;
    background: #151b2e !important;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4) !important;
}

form.bg-white > .teetche-auth-hello {
    display: block;
    width: 44px;
    height: 44px;
    margin: 0 auto 0.15rem;
}

form.bg-white > p {
    color: #64748b !important;
    text-align: center;
    line-height: 1.45;
}

form.bg-white + form button {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #be77fb !important;
    font-family: "Nunito Sans", ui-sans-serif, system-ui, sans-serif !important;
    font-weight: 700 !important;
    height: auto !important;
    min-height: 0 !important;
}

form.bg-white + form button:hover {
    color: #be77fb !important;
    opacity: 0.8;
    transform: none !important;
    filter: none !important;
}

form.bg-white > h2 {
    margin-bottom: 1.6rem !important;
    color: #64748b !important;
    font-size: 1.55rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    line-height: 1.2 !important;
}

html.dark form.bg-white > h2,
.dark form.bg-white > h2 {
    color: #f8fafc !important;
}

form.bg-white > h2::after {
    content: "";
    display: block;
    width: 5.5rem;
    height: 3px;
    margin: 0.85rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent 0%, #6fd1c0 22%, #6fd1c0 78%, transparent 100%);
}

form.bg-white > svg {
    display: none !important;
}

form.bg-white label.block {
    margin-bottom: 0.45rem !important;
    color: #64748b !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
}

html.dark form.bg-white label.block,
.dark form.bg-white label.block {
    color: #cbd5e1 !important;
}

form.bg-white .form-control {
    min-height: 2.85rem;
    border: 1px solid #e4eaf2 !important;
    border-radius: 0.95rem !important;
    background: #f8fafc !important;
    color: #64748b !important;
    box-shadow: none !important;
}

html.dark form.bg-white .form-control,
.dark form.bg-white .form-control {
    border-color: #2a3550 !important;
    background: #0f1628 !important;
    color: #f8fafc !important;
}

form.bg-white .form-control:focus {
    border-color: #6fd1c0 !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(111, 209, 192, 0.22) !important;
    outline: none !important;
}

html.dark form.bg-white .form-control:focus,
.dark form.bg-white .form-control:focus {
    background: #0f1628 !important;
}

form.bg-white .form-control-bordered-error,
form.bg-white .form-control-bordered-error:focus {
    border-color: #f43f5e !important;
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.14) !important;
}

form.bg-white .flex.mb-6 {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

form.bg-white a {
    color: #be77fb !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

form.bg-white a:hover {
    color: #be77fb !important;
    opacity: 0.8;
}

form.bg-white button[type="submit"]:not(#teetche-auth-unused) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 3rem !important;
    margin-top: 0.15rem;
    border: 0 !important;
    border-radius: 999px !important;
    background: #be77fb !important;
    color: #fff !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 28px rgba(190, 119, 251, 0.32), 0 0 0 3px rgba(190, 119, 251, 0.24) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

form.bg-white button[type="submit"]:not(#teetche-auth-unused) > span {
    line-height: 1 !important;
}

form.bg-white button[type="submit"]:not(#teetche-auth-unused):hover:not(:disabled) {
    background: #be77fb !important;
    filter: brightness(0.96);
    box-shadow: 0 16px 32px rgba(190, 119, 251, 0.38), 0 0 0 3px rgba(190, 119, 251, 0.32) !important;
    transform: translateY(-1px);
}

form.bg-white button.teetche-auth-login:not(#teetche-auth-unused) {
    gap: 10px !important;
    border: 1px solid transparent !important;
    font-size: 1.2rem !important;
    box-shadow: 0 12px 28px rgba(190, 119, 251, 0.32), 0 0 0 3px rgba(190, 119, 251, 0.24) !important;
}

form.bg-white button.teetche-auth-login:not(#teetche-auth-unused)::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.75 3.25H15.5a2.25 2.25 0 0 1 2.25 2.25v13A2.25 2.25 0 0 1 15.5 20.75H5.75'/%3E%3Cpath d='M7.25 16.25 11.5 12 7.25 7.75'/%3E%3Cpath d='M11.25 12H1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

form.bg-white button.teetche-auth-login:not(#teetche-auth-unused):hover:not(:disabled) {
    background: #be77fb !important;
    border-color: transparent !important;
    box-shadow: 0 16px 32px rgba(190, 119, 251, 0.38), 0 0 0 3px rgba(190, 119, 251, 0.32) !important;
    filter: none;
    transform: translateY(-1px);
}

form.bg-white button.teetche-auth-verify:not(#teetche-auth-unused) {
    gap: 10px !important;
    border: 1px solid transparent !important;
    font-size: 1.2rem !important;
}

form.bg-white button.teetche-auth-verify:not(#teetche-auth-unused)::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='7' width='12' height='10' rx='2.2'/%3E%3Cpath d='M8.6 7V4.4a3.5 3.5 0 0 1 6.7-1.1'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

form.bg-white button[type="submit"]:not(#teetche-auth-unused):disabled {
    opacity: 0.7;
    transform: none;
}

.py-6 > .max-w-sm {
    display: block !important;
    width: min(25rem, calc(100% - 2rem)) !important;
    max-width: 25rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
    text-align: center;
}

.py-6 > .max-w-sm > span {
    display: block !important;
    width: 100%;
}

/*
 * Le fichier logo-green.svg a une grande zone vide à droite (encre sur ~32,8 %
 * de la largeur). On aligne le dessin, pas la boîte du SVG, sur l'encart.
 */
#svg8,
#svg8.h-8 {
    position: relative !important;
    left: 50% !important;
    right: auto !important;
    display: block !important;
    margin: 0 !important;
    transform: translateX(-32.84%) !important;
    width: 510px !important;
    height: 8em !important;
    max-width: none !important;
}

@media (max-width: 640px) {
    #svg8,
    #svg8.h-8 {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 510 / 112;
    }

    .max-w-sm.py-8 {
        padding-top: 0.75rem !important;
        padding-bottom: 1.25rem !important;
    }

    form.bg-white {
        padding: 1.5rem 1.15rem 1.25rem !important;
        margin-bottom: 5.5rem !important;
    }

    form.bg-white:has(+ form) {
        margin-bottom: 0 !important;
    }

    form.bg-white + form {
        margin-top: 0.25rem !important;
        margin-bottom: 5.5rem !important;
    }

    form.bg-white > h2 {
        font-size: 1.4rem !important;
    }

    form.bg-white .form-control {
        font-size: 16px !important;
    }

    form.bg-white button[type="submit"]:not(#teetche-auth-unused) {
        height: 3rem !important;
        min-height: 3rem !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        white-space: nowrap !important;
        font-size: 1.125rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    form.bg-white button.teetche-auth-login:not(#teetche-auth-unused),
    form.bg-white button.teetche-auth-verify:not(#teetche-auth-unused) {
        font-size: 1.125rem !important;
    }
}
