body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
}

.login-container {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
    box-sizing:border-box;
}

    .login-container h1 {
        text-align: center;
        margin-bottom: 1.5rem;
        font-size: 1.5rem;
        color: #333;
    }

.form-group {
    margin-bottom: 1rem;
    position: relative; /* Necesario para el icono */
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        color: #555;
    }

    .form-group input {
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
        border: 1px solid #ddd;
        border-radius: 5px;
        box-sizing: border-box;
    }

        .form-group input:focus {
            border-color: #007bff;
            outline: none;
            box-shadow: 0 0 4px rgba(0, 123, 255, 0.3);
        }

.btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    color: #ffffff;
    background-color: #f38c2c;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}

    .btn:hover {
        background-color: #f5b57a;
    }

.error-message {
    color: red;
    font-size: 0.9rem;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    display: none;
}

.password-wrapper {
    position: relative;
}

    .password-wrapper input {
        width: 100%;
        box-sizing: border-box;
    }

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center; /* CENTRA verticalmente */
}

    .password-wrapper input {
        width: 100%;
        padding-right: 40px; /* espacio para el icono */
        box-sizing: border-box;
    }

.toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    user-select: none;
    line-height: 1;
}
