/* EMSOGRO_WIFICONTROL_CLOUD_BRANDING_V1 */

:root {
    --emsogro-blue-dark: #052b63;
    --emsogro-blue-light: #075fb2;
    --emsogro-page-background: #f3f6fa;
    --emsogro-text: #172033;
}

body.wificontrol-branded {
    margin: 0;
    color: var(--emsogro-text);
    background: var(--emsogro-page-background);
}

/* En-tête partagé */

.emsogro-wificontrol-brandbar {
    position: sticky;
    z-index: 9998;
    top: 0;
    width: 100%;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    background:
        linear-gradient(
            112deg,
            var(--emsogro-blue-dark),
            var(--emsogro-blue-light)
        );
    box-shadow: 0 10px 28px rgba(3, 30, 70, .16);
}

.emsogro-wificontrol-brandbar .brand-logo {
    display: inline-flex;
    align-items: center;
}

.emsogro-wificontrol-brandbar img {
    width: 270px;
    max-width: 46vw;
    height: auto;
    padding: 6px 10px;
    border-radius: 12px;
    background: #fff;
}

.emsogro-wificontrol-brand-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 14px;
}

.emsogro-wificontrol-brandbar .brand-title {
    color: #fff;
    font-size: .86rem;
    font-weight: 800;
    text-align: right;
}

.emsogro-wificontrol-brandbar .home-link {
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none;
}

.emsogro-wificontrol-brandbar .home-link:hover,
.emsogro-wificontrol-brandbar .home-link:focus {
    color: #ffb077;
    text-decoration: underline;
}

/* Pied de page partagé */

.emsogro-wificontrol-footer {
    width: min(1180px, calc(100% - 28px));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin: 34px auto 18px;
    padding: 20px;
    border-radius: 16px;
    color: #fff;
    background:
        linear-gradient(
            112deg,
            var(--emsogro-blue-dark),
            var(--emsogro-blue-light)
        );
    text-align: center;
}

.emsogro-wificontrol-footer a {
    color: #fff;
    font-weight: 850;
    text-decoration: none;
}

.emsogro-wificontrol-footer a:hover,
.emsogro-wificontrol-footer a:focus {
    color: #ffb077;
    text-decoration: underline;
}

/* Accueil public */

body.wificontrol-public-home .header {
    position: sticky;
    z-index: 9998;
    top: 0;
    min-height: 72px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    background:
        linear-gradient(
            112deg,
            var(--emsogro-blue-dark),
            var(--emsogro-blue-light)
        ) !important;
    box-shadow: 0 10px 28px rgba(3, 30, 70, .16);
}

body.wificontrol-public-home .header .nav {
    min-height: 72px;
}

body.wificontrol-public-home .header .brand img {
    width: 270px;
    max-width: 42vw;
    height: auto;
    padding: 6px 10px;
    border-radius: 12px;
    background: #fff;
}

body.wificontrol-public-home .header a,
body.wificontrol-public-home .header button {
    color: #fff;
}

body.wificontrol-public-home .header a:hover,
body.wificontrol-public-home .header a:focus {
    color: #ffb077;
}

body.wificontrol-public-home .footer {
    width: min(1180px, calc(100% - 28px));
    margin: 34px auto 18px;
    padding: 22px;
    border-radius: 16px;
    color: #fff;
    background:
        linear-gradient(
            112deg,
            var(--emsogro-blue-dark),
            var(--emsogro-blue-light)
        ) !important;
}

body.wificontrol-public-home .footer a,
body.wificontrol-public-home .footer small,
body.wificontrol-public-home .footer strong {
    color: #fff;
}

/* Tableau de bord */

body.wificontrol-dashboard .topbar {
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    background:
        linear-gradient(
            112deg,
            var(--emsogro-blue-dark),
            var(--emsogro-blue-light)
        ) !important;
    box-shadow: 0 10px 28px rgba(3, 30, 70, .16);
}

body.wificontrol-dashboard .topbar-inner {
    min-height: 72px;
}

body.wificontrol-dashboard .topbar .brand img {
    width: 270px;
    max-width: 42vw;
    height: auto;
    padding: 6px 10px;
    border-radius: 12px;
    background: #fff;
}

body.wificontrol-dashboard .top-link,
body.wificontrol-dashboard .logout {
    color: #fff;
}

body.wificontrol-dashboard .footer {
    width: min(1180px, calc(100% - 28px));
    margin: 34px auto 18px;
    padding: 20px;
    border-radius: 16px;
    color: #fff;
    background:
        linear-gradient(
            112deg,
            var(--emsogro-blue-dark),
            var(--emsogro-blue-light)
        ) !important;
}

body.wificontrol-dashboard .emsogro-contact-strip {
    border-top-color: rgba(255, 255, 255, .22);
}

body.wificontrol-dashboard .emsogro-contact-strip a {
    color: #fff;
}

/* Connexion */

body.wificontrol-login {
    min-height: 100vh;
    display: flex !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    flex-direction: column !important;
    padding: 0 !important;
    background: var(--emsogro-page-background) !important;
}

body.wificontrol-login > main {
    margin: 50px auto;
}

body.wificontrol-login h1 {
    color: var(--emsogro-blue-dark);
}

body.wificontrol-login .login-link {
    background: var(--emsogro-blue-light);
}

body.wificontrol-login .login-link:hover,
body.wificontrol-login .login-link:focus {
    background: var(--emsogro-blue-dark);
}

/* Inscription */

body.wificontrol-registration {
    background: var(--emsogro-page-background) !important;
}

body.wificontrol-registration .page {
    min-height: auto;
    padding-top: 34px;
    background: var(--emsogro-page-background);
}

body.wificontrol-registration .page .top {
    display: none !important;
}

body.wificontrol-registration
.page > .shell > .footer {
    display: none !important;
}

body.wificontrol-registration .intro {
    background:
        linear-gradient(
            112deg,
            var(--emsogro-blue-dark),
            var(--emsogro-blue-light)
        ) !important;
}

body.wificontrol-registration .submit {
    background: var(--emsogro-blue-light) !important;
}

body.wificontrol-registration .submit:hover,
body.wificontrol-registration .submit:focus {
    background: var(--emsogro-blue-dark) !important;
}

/* Activation */

body.wificontrol-activation {
    min-height: 100vh;
    background: var(--emsogro-page-background) !important;
}

body.wificontrol-activation button,
body.wificontrol-activation button[type="submit"],
body.wificontrol-activation .button {
    background: var(--emsogro-blue-light) !important;
    color: #fff !important;
}

@media (max-width: 680px) {
    .emsogro-wificontrol-brandbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 12px 16px;
    }

    .emsogro-wificontrol-brandbar img {
        width: 220px;
        max-width: 80vw;
    }

    .emsogro-wificontrol-brand-actions {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .emsogro-wificontrol-brandbar .brand-title {
        text-align: left;
    }

    .emsogro-wificontrol-footer {
        align-items: stretch;
        flex-direction: column;
    }

    body.wificontrol-public-home .header .brand img,
    body.wificontrol-dashboard .topbar .brand img {
        width: 220px;
        max-width: 68vw;
    }
}
