/* Estilos para el formulario de registro */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.register-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
}

.register-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.register-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.register-container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.register-container button {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.register-container button:hover {
    background-color: #218838;
}

.register-container .login {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

.register-container .login a {
    color: #007bff;
    text-decoration: none;
}

.register-container .login a:hover {
    text-decoration: underline;
}

.error {
    color: red;
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 10px;
}

/* Estilo para el contenedor del icono */
.password-container {
    position: relative;
}

/* Estilo para el icono del ojo */
.eye-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.feedback {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    margin-bottom: 14px;
    border: 1px solid transparent;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.feedback-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.feedback-success {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}

.feedback-visible {
    opacity: 1;
    transform: translateY(0);
}

.feedback-message {
    flex: 1;
}

.feedback-close {
    border: 0;
    background: transparent;
    color: currentColor;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 2px;
    opacity: 0.75;
}

.feedback-close:hover {
    opacity: 1;
}
