/* =========================================================
   PAGE DE CONNEXION — BYMADA Portfolio privé
   Réutilise les polices et couleurs du site.
========================================================= */

@font-face {
    font-family: "BabeSans";
    src: url("../assets/fonts/BabeSans.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Starlight";
    src: url("../assets/fonts/Starlight.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    --light: #f2f1ed;
    --dark: #171617;
    --green: #29412c;
}

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

body {
    margin: 0;
    min-height: 100svh;

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

    padding: 24px;

    background: var(--dark);
    color: var(--light);

    font-family: "BabeSans", Arial, Helvetica, sans-serif;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
}

.login__card {
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.login__brand {
    display: block;
    margin-bottom: 30px;

    font-size: 12px;
    letter-spacing: 0.35em;
    text-transform: uppercase;

    color: rgba(242, 241, 237, 0.7);
}

.login__title {
    margin: 0 0 14px;

    font-family: "Starlight", "BabeSans", Arial, sans-serif;
    font-size: clamp(40px, 9vw, 56px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.login__sub {
    margin: 0 0 38px;

    font-size: 13px;
    line-height: 1.6;
    color: rgba(242, 241, 237, 0.6);
}

.login__form {
    display: flex;
    flex-direction: column;
    gap: 16px;

    text-align: left;
}

.login__field span {
    display: block;
    margin-bottom: 7px;

    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: rgba(242, 241, 237, 0.55);
}

.login__field input {
    width: 100%;
    padding: 13px 15px;

    background: rgba(242, 241, 237, 0.05);
    border: 1px solid rgba(242, 241, 237, 0.18);
    border-radius: 10px;

    color: var(--light);
    font-family: inherit;
    font-size: 15px;

    transition:
        border-color 220ms ease,
        background-color 220ms ease;
}

.login__field input:focus {
    outline: none;
    border-color: rgba(242, 241, 237, 0.5);
    background: rgba(242, 241, 237, 0.08);
}

.login__error {
    margin: 2px 0 0;

    font-size: 12px;
    color: #e8836b;
}

.login__button {
    margin-top: 12px;
    padding: 15px;

    background: var(--light);
    color: var(--dark);
    border: 0;
    border-radius: 10px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    cursor: pointer;
    transition:
        opacity 220ms ease,
        transform 120ms ease;
}

.login__button:hover {
    opacity: 0.88;
}

.login__button:active {
    transform: translateY(1px);
}
