@import url('https://fonts.googleapis.com/css2?family=Radio+Canada:wght@300&family=Roboto:wght@300;400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f2f2f2;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    min-height: 100vh;
}

.form {
    background-color: white;
    margin: auto;
    width: 250px;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.form_container {
    margin-top: 2em;
    display: grid;
    gap: 2em;
}

.form_group {
    position: relative;
    --color: #8a8a8a;
}

.form_input {
    width: 100%;
    background: none;
    color: #333;
    font-size: 0.95rem;
    padding: 0.5em 0.3em;
    border: none;
    outline: none;
    border-bottom: 1px solid var(--color);
    font-family: 'Roboto', sans-serif;
}

.form_label {
    color: var(--color);
    position: absolute;
    top: 0;
    left: 5px;
    transform: translateY(10px);
    transition: transform 0.3s, color 0.3s;
}

.form_input:focus + .form_label,
.form_input:not(:placeholder-shown) + .form_label {
    transform: translateY(-12px) scale(0.8);
    color: #333;
}

.form_line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 100%;
    background-color: #999;
    transform: scale(0);
    transition: transform 0.3s;
}

.form_input:focus ~ .form_line,
.form_input:not(:placeholder-shown) ~ .form_line {
    transform: scale(1);
}

.logo_poli {
    width: 100%;
    margin-bottom: 10px;
}

.form_submit {
    color: white;
    font-size: 16px;
    padding: 8px;
    border: none;
    border-radius: 4px;
    background-color: #6c757d;
    transition: background-color 0.3s ease;
}

.form_submit:hover {
    background-color: #5a6268;
}

.alerta {
    margin: 20px auto -30px auto;
    width: 210px;
    font-size: 15px;
    display: grid;
    place-content: center;
    border-radius: 8px;
    background: rgba(243, 35, 35, 0.85);
    color: white;
    height: 40px;
    animation: shake-lr 0.7s steps(2, end);
}

@keyframes shake-lr {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(6deg); }
    20%, 40%, 60% { transform: rotate(-8deg); }
    30%, 50%, 70% { transform: rotate(8deg); }
    80% { transform: rotate(-6deg); }
    90% { transform: rotate(6deg); }
}

.footer {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background-color: #343a40;
    bottom: 0;
    width: 100%;
    height: 30px;
}