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

/* Fundo com animação */
body {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4A90E2, #50C9C3, #7B42F6);
    background-size: 300% 300%;
    animation: gradientMove 12s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* CAIXA DE LOGIN */
.login-container {
    background: #fff;
    padding: 40px 35px;
    border-radius: 10px;
    width: 350px;
    box-shadow: 0 0 20px rgba(0,0,0,0.25);
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 1s forwards ease-out;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Inputs e botões */
.login-container h2 {
    margin-bottom: 25px;
    color: #333;
}

.input-field {
    margin-bottom: 20px;
    text-align: left;
}

    .input-field input {
        width: 100%;
        padding: 10px;
        border-radius: 5px;
        border: 1px solid #bbb;
        font-size: 15px;
        margin-top: 5px;
        transition: 0.3s;
    }

        .input-field input:focus {
            border-color: #4A90E2;
            box-shadow: 0 0 8px rgba(74, 144, 226, 0.5);
            transform: scale(1.03);
        }

.btn-login {
    width: 100%;
    background: #4A90E2;
    color: #fff;
    padding: 12px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: 0.25s;
}

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

    .btn-login:active {
        transform: scale(0.95);
    }

.link {
    margin-top: 15px;
    display: block;
    font-size: 14px;
    color: #4A90E2;
    text-decoration: none;
}

    .link:hover {
        text-decoration: underline;
    }


/* 🔥 RESPONSIVIDADE 🔥 */

/* Telas menores (celular) */
@media (max-width: 480px) {
    body {
        padding: 20px;
    }

    .login-container {
        width: 100%;
        padding: 30px 25px;
    }

        .login-container h2 {
            font-size: 22px;
        }

    .input-field input {
        font-size: 14px;
        padding: 9px;
    }

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

    .link {
        font-size: 13px;
    }
}

/* Telas grandes (monitor) */
@media (min-width: 1400px) {
    .login-container {
        transform: scale(1.2);
    }
}
