body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #8b54be;
    margin: 0;
    padding: 2em;
    display: flex;
    justify-content: center;
}

form {
    background: #ffffff;
    padding: 60px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1.5em;
}

label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
    color: #34495e;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.75em;
    margin-bottom: 1em;
    border: 1px solid #ccc;
    border-radius: 6px;

    font-size: 1em;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #3498db;
    outline: none;
}

button {
    width: 100%;
    padding: 0.75em;
    background-color: #bf34db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

.error {
    color: #e74c3c;
    font-size: 0.9em;
    margin-top: -0.5em;
    margin-bottom: 1em;
}

.exito {
    color: #2e7d32;
    background-color: #e8f5e9;
    border: 1px solid #81c784;
    padding: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
    font-weight: bold;
    border-radius: 5px;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
    text-align: center;
}