main { 
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f1f1f1;
}

input { 
    display: block;
    width: 80%;
    height: 30px;
    margin: 5px;
    border: 2px solid #ccc;
    border-radius: 4px;
}

input:focus { 
    border: 2px solid #4CAF50;
}

#register { 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    width: 50%;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    margin: 200px 0;

}

#register h1 { 
    color: black;
    font-size: 2em;
    margin-bottom: 20px;
}

#register p { 
    color: black;
    font-size: 1.5em;
    margin-bottom: 20px;
}

#register a { 
    color: #4CAF50;
}

#register button { 
    background-color: #f1f1f1;
    color: black;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    margin-top: 20px;
    width: 40%;
    margin-bottom: 20px;
}

#register button:hover { 
    background-color: #ccc;
    border: 1px solid #f1f1f1;
    cursor: pointer;
}

.error { 
    border: 2px solid red;
    animation: shake 0.5s;
}

@keyframes shake { 
    0% { 
        transform: translate(0);
    }
    25% { 
        transform: translate(5px);
    }
    50% { 
        transform: translate(-5px);
    }
    75% { 
        transform: translate(5px);
    }
    100% { 
        transform: translate(0);
    }
}