
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Helvetica, Arial, sans-serif;
}

body {
    min-height: 100vh;
    color: #142c50;
}

.login-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 40px 8%;
    position: relative;

    background:
        linear-gradient(
            90deg,
            rgba(5, 15, 35, 0.05) 0%,
            rgba(5, 15, 35, 0.08) 50%,
            rgba(5, 15, 35, 0.30) 100%
        ),
        url("../images/parapente.jpg");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Panneau de connexion */

.login-card {
    width: 100%;
    max-width: 560px;
    padding: 34px 46px 24px;

    background: rgba(245, 247, 252, 0.70);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 26px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* Identité Parawing */

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

.brand-logo {
    display: block;
    width: 125px;
    height: 95px;
    object-fit: contain;
    margin: 0 auto 4px;
}

.brand h1 {
    margin: 0;
    font-size: 43px;
    font-weight: 700;
    letter-spacing: 9px;
    color: #12335e;
}

.subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 5px;
}

.subtitle span {
    height: 1px;
    width: 55px;
    background: rgba(20, 50, 90, 0.55);
}

.subtitle p {
    margin: 0;
    font-size: 23px;
    font-style: italic;
    color: #23466e;
}

/* Formulaire */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #294766;
}

.input-wrapper {
    height: 58px;
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 0 17px;

    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(20, 44, 80, 0.10);
    border-radius: 12px;

    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper:focus-within {
    border-color: #3679bd;
    box-shadow: 0 0 0 3px rgba(54, 121, 189, 0.15);
}

.input-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.input-icon svg,
.password-toggle svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #23466e;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.input-wrapper input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;

    font-size: 16px;
    color: #142c50;
}

.input-wrapper input::placeholder {
    color: #7b8490;
}

.password-toggle {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    padding: 2px;
    border: none;
    background: transparent;
    cursor: pointer;
}

/* Bouton de connexion */

.submit-button {
    height: 62px;
    margin-top: 5px;
    padding: 0 25px;

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

    border: none;
    border-radius: 12px;

    background: linear-gradient(110deg, #06366b, #092b55);
    color: white;

    font-size: 17px;
    font-weight: 600;
    cursor: pointer;

    box-shadow: 0 8px 18px rgba(4, 37, 78, 0.20);
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(4, 37, 78, 0.30);
}

.button-arrow {
    font-size: 25px;
    line-height: 1;
}

/* Décoration basse */

.card-footer {
    margin-top: 27px;
    text-align: center;
}

.mountain-line svg {
    width: 220px;
    max-width: 100%;
    height: 42px;
    fill: none;
    stroke: rgba(30, 70, 115, 0.65);
    stroke-width: 2;
    stroke-linejoin: round;
}

/* Crédit photo */

.photo-credit {
    position: absolute;
    bottom: 18px;
    left: 24px;

    color: rgba(255, 255, 255, 0.75);
    font-size: 10px;
    letter-spacing: 2px;
}

/* Tablettes */

@media (max-width: 900px) {
    .login-page {
        justify-content: center;
        padding: 30px 20px;
    }

    .login-card {
        max-width: 500px;
    }
}

/* Smartphones */

@media (max-width: 520px) {
    .login-page {
        min-height: 100svh;
        padding: 20px 15px;
        background-position: 34% center;
    }

    .login-card {
        max-width: 430px;
        padding: 25px 23px 20px;
        border-radius: 20px;
        background: rgba(245, 247, 252, 0.84);
    }

    .brand {
        margin-bottom: 25px;
    }

    .brand-logo {
        width: 100px;
        height: 76px;
    }

    .brand h1 {
        font-size: 32px;
        letter-spacing: 7px;
    }

    .subtitle p {
        font-size: 19px;
    }

    .subtitle span {
        width: 35px;
    }

    .input-wrapper {
        height: 54px;
    }

    .submit-button {
        height: 56px;
    }

    .photo-credit {
        display: none;
    }
}

/* Accessibilité : réduction des animations */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}

