/* Reset */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body{
    background: linear-gradient(135deg, #74ebd5, #ACB6E5);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    padding: 40px;
    flex-wrap: wrap;
}

/* Cards */
.container{
    background: #fff;
    width: 450px;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,.2);
}

.container h3{
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
}

/* Formulário */
form{
    display: flex;
    flex-direction: column;
}

label{
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

input{
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 15px;
    outline: none;
    transition: .3s;
    font-size: 15px;
}

input:focus{
    border-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76,175,80,.4);
}

button{
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #4CAF50;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: .3s;
}

button:hover{
    background: #43a047;
    transform: translateY(-2px);
}

/* Tabela */
table{
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 10px;
}

th{
    background: #4CAF50;
    color: white;
    padding: 12px;
}

td{
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

tr:nth-child(even){
    background: #f5f5f5;
}

tr:hover{
    background: #e8f5e9;
}

/* Mensagens */
p{
    text-align: center;
    color: red;
    margin-top: 15px;
    font-weight: bold;
}

/* Responsividade */
@media(max-width: 950px){
    body{
        flex-direction: column;
        align-items: center;
    }

    .container{
        width: 95%;
        max-width: 600px;
    }
}