@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(to right, #0c78bb, #273282);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.login-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 100%;
    max-width: 450px;
    transition: transform 0.3s ease-in-out;
}

.login-box:hover {
    transform: scale(1.03);
}

.logo img {
    width: 120px;
    margin-bottom: 15px;
}

h2 {
    color: #273282;
    font-size: 24px;
    margin-bottom: 10px;
}

p {
    color: #737458;
    font-size: 15px;
    margin-bottom: 20px;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    padding: 14px;
    border: 2px solid #c3b47f;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

.input-group label {
    position: absolute;
    left: 14px;
    top: 16px;
    font-size: 16px;
    color: #737458;
    transition: 0.3s;
    pointer-events: none;
}

.input-group input:focus {
    border-color: #b19141;
}

.input-group input:focus+label,
.input-group input:valid+label {
    top: -10px;
    left: 12px;
    font-size: 12px;
    color: #b19141;
    background: #fff;
    padding: 0 5px;
    border-radius: 4px;
}

.login-btn {
    width: 100%;
    padding: 14px;
    border: none;
    background: #b19141;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.login-btn:hover {
    background: #756649;
    transform: scale(1.05);
}

.links {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.links a {
    text-decoration: none;
    color: #0c78bb;
    font-size: 14px;
    transition: 0.3s;
}

.links a:hover {
    color: #49c4ee;
}

/* ✅ RESPONSIVE DESIGN */

/* TABLETTES */
@media (max-width: 768px) {
    .login-box {
        width: 90%;
        max-width: 380px;
    }

    h2 {
        font-size: 22px;
    }
}

/* MOBILES */
@media (max-width: 480px) {
    .login-box {
        width: 100%;
        padding: 30px;
    }

    h2 {
        font-size: 20px;
    }

    .input-group input {
        padding: 12px;
    }

    .login-btn {
        padding: 12px;
        font-size: 15px;
    }

    .links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}