
/* ============================================================
   CORE - PAGE DE CONNEXION
   NET2ALL
   ============================================================ */

:root {
    --core-primary: #123451;
    --core-secondary: #13a89e;
    --core-accent: #f2b84b;

    --core-background: #f3f6fa;
    --core-text: #26384a;
    --core-muted: #8492a6;

    --core-border: #dce3eb;
    --core-danger: #842029;
    --core-danger-bg: #f8d7da;
}


/* ============================================================
   PAGE
   ============================================================ */

.auth-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 35px 20px;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(19, 168, 158, .08),
            transparent 35%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(18, 52, 81, .08),
            transparent 35%
        ),
        var(--core-background);

    color: var(--core-text);
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

.auth-wrapper *,
.auth-wrapper *::before,
.auth-wrapper *::after {
    box-sizing: border-box;
}


/* ============================================================
   CARTE
   ============================================================ */

.auth-card {
    position: relative;

    width: 100%;
    max-width: 450px;

    padding: 42px;

    background: #fff;

    border: 1px solid rgba(18, 52, 81, .06);
    border-radius: 18px;

    box-shadow:
        0 15px 50px rgba(18, 52, 81, .09),
        0 2px 8px rgba(18, 52, 81, .03);
}


/* ============================================================
   IDENTITÉ
   ============================================================ */

.auth-brand {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 68px;
    height: 68px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: linear-gradient(
        135deg,
        var(--core-primary),
        #1d6171
    );

    color: #fff;

    font-size: 21px;
    font-weight: 800;
    letter-spacing: 1px;

    box-shadow: 0 7px 18px rgba(18, 52, 81, .18);
}

.auth-eyebrow {
    display: block;

    margin-bottom: 12px;

    color: var(--core-secondary);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
}

.auth-brand h1 {
    margin: 0 0 10px;

    color: var(--core-primary);

    font-size: 28px;
    font-weight: 800;
}

.auth-brand p {
    max-width: 310px;

    margin: 0 auto;

    color: #718096;

    font-size: 13px;
    line-height: 1.7;
}


/* ============================================================
   FORMULAIRE
   ============================================================ */

.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 21px;
}

.form-group label {
    display: block;

    margin-bottom: 9px;

    color: var(--core-primary);

    font-size: 13px;
    font-weight: 700;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;

    color: #8b9bad;

    font-size: 15px;
    font-weight: 700;

    pointer-events: none;
}

.form-group input {
    display: block;

    width: 100%;
    height: 49px;

    padding: 12px 14px 12px 43px;

    border: 1px solid var(--core-border);
    border-radius: 8px;

    background: #fff;

    color: var(--core-primary);

    font-family: inherit;
    font-size: 13px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.form-group input::placeholder {
    color: #a7b2bf;
}

.form-group input:hover {
    border-color: #b8c7d5;
}

.form-group input:focus {
    border-color: var(--core-secondary);

    box-shadow:
        0 0 0 3px rgba(19, 168, 158, .12);

    background: #fcfefe;
}


/* ============================================================
   BOUTON
   ============================================================ */

.btn-login {
    width: 100%;
    min-height: 50px;

    margin-top: 8px;
    padding: 13px 18px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    border: 0;
    border-radius: 8px;

    background: var(--core-primary);
    color: #fff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.btn-login:hover {
    background: var(--core-secondary);

    box-shadow: 0 6px 16px rgba(19, 168, 158, .20);

    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:focus-visible {
    outline: 3px solid rgba(19, 168, 158, .35);
    outline-offset: 3px;
}

.btn-arrow {
    font-size: 19px;
    font-weight: 400;
}


/* ============================================================
   ALERTES
   ============================================================ */

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;

    margin-bottom: 20px;
    padding: 13px 14px;

    border-radius: 8px;

    font-size: 12px;
    line-height: 1.6;
}

.auth-alert-danger {
    border: 1px solid #f1c6ca;

    background: var(--core-danger-bg);
    color: var(--core-danger);
}

.alert-icon {
    width: 20px;
    height: 20px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(132, 32, 41, .12);

    font-size: 12px;
    font-weight: 800;
}

.alert-content {
    flex: 1;
    overflow-wrap: anywhere;
}


/* ============================================================
   PIED DE PAGE
   ============================================================ */

.auth-footer {
    margin-top: 32px;
    padding-top: 23px;

    border-top: 1px solid #edf1f5;

    text-align: center;
}

.auth-footer-brand span {
    color: var(--core-secondary);

    font-size: 13px;
    font-weight: 900;
    letter-spacing: 3px;
}

.auth-footer p {
    margin: 9px 0 14px;

    color: var(--core-muted);

    font-size: 11px;
}

.auth-security {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    color: #718096;

    font-size: 10px;
}

.security-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--core-secondary);
}


/* ============================================================
   COPYRIGHT
   ============================================================ */

.auth-copyright {
    position: absolute;
    bottom: 14px;

    width: 100%;

    color: #a1adba;

    font-size: 10px;
    letter-spacing: 1px;

    text-align: center;
}


/* ============================================================
   TABLETTE
   ============================================================ */

@media (max-width: 600px) {

    .auth-wrapper {
        padding: 25px 16px 55px;
    }

    .auth-card {
        max-width: 420px;
        padding: 32px 25px;
        border-radius: 14px;
    }

    .auth-brand h1 {
        font-size: 25px;
    }

}


/* ============================================================
   PETITS ÉCRANS
   ============================================================ */

@media (max-width: 360px) {

    .auth-card {
        padding: 28px 19px;
    }

    .auth-logo {
        width: 60px;
        height: 60px;
    }

    .auth-brand h1 {
        font-size: 23px;
    }

    .form-group input {
        height: 46px;
    }

}


/* ============================================================
   ACCESSIBILITÉ
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .auth-wrapper *,
    .auth-wrapper *::before,
    .auth-wrapper *::after {
        transition: none !important;
        animation: none !important;
    }

}



/* ============================================================
   LIEN VERS L'INSCRIPTION
   ============================================================ */

.auth-switch {
    margin-top: 22px;
    text-align: center;
    color: #8492a6;
    font-size: 13px;
}

.auth-switch a {
    color: #13a89e;
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
}

.auth-switch a:hover {
    text-decoration: underline;
}

